[Stgt-devel] [PATCH 2/7] Add option to delete all the targets
Tomasz Chmielewski
mangoo
Tue Jul 29 15:56:44 CEST 2008
FUJITA Tomonori schrieb:
(...)
>> --delete <ALL|tid=|targetname>
>>
>> It would only touch the target if it is not in use.
>> ALL would delete all targets which are not in use; the targets which have initiators connected would not have its state changed (some informational message would be displayed to the user).
>>
>> --forcedelete <ALL|tid=|targetname>
>>
>> It would delete the targets irrespectively of their use.
>
> How about the followings?
>
> (--force) --delete <ALL|tid=|targetname>
>
> It would only touch the target if it is not in use. If an active
> target (or targets due to ALL) is specified, the warnings shows up.
>
> If --force option is enabled, it would delete the targets
> irrespectively of their use.
I thought about it, but we have already:
-f, --force don't exit on tgtadm errors
And I couldn't come up with a better name than "force" ;)
Since tgt-admin still changes a lot, perhaps it would be better to rename the current "--force" into something like "--ignore-errors".
And from then on use "--force" to force some potentially dangerous operations, like force-deleting targets.
--
Tomasz Chmielewski
http://wpkg.org
More information about the stgt
mailing list