[Stgt-devel] tgt-admin tool development ...

Tomasz Chmielewski mangoo
Thu Jul 24 23:44:21 CEST 2008

Richard Sharpe schrieb:
> Hi,
> I have noticed some deficiencies with the handling of the config file
> etc, and Fujita mentioned that it would be nice for --show to work
> cleanly if the config file does not exist. I have also noticed that
> things don't work so well if the config file is empty.
> I plan on cleaning these up over the next few days unless someone else
> gets to them.

Go ahead, it shouldn't be too much work anyway ;)

> We should probably set a flag saying we have a Config file and perhaps
> also valid config information.

One thing which still needs to be contemplated: tgt-admin works with 
iscsi driver only right now (and has some "--lld iscsi" hardcoded).

tgtd is supposed to work with other drivers, too, so it would make sense 
to support them as well.

What about other drivers? Are they stable?

According to README.fcoe, "this driver is not stable at all".
ibmvstgt? Are there any other drivers (planned)?

That being said: I wanted to add support for "dumping" current tgtd 
configuration into a config file, i.e. tgt-admin --dump (perhaps there 
are better names for this option) would read all configured targets 
(tgtadm --op show --mode target) and print a nice config file out of it. 
Obviously, it wouldn't show passwords, as tgtadm doesn't show them.

Do you think such feature would be useful?

Tomasz Chmielewski

More information about the stgt mailing list