[Stgt-devel] [PATCH 6/7] target reconfiguration

Tomasz Chmielewski mangoo
Tue Jul 29 13:32:22 CEST 2008


Doron Shoham schrieb:
> Tomasz Chmielewski wrote:
>> Tomasz Chmielewski schrieb:
>>> Doron Shoham schrieb:
>>>> modifying a target that already exits in tgt, current instance will
>>>> be delete
>>>> and a new one will be created with the new parameters instead.
>>> Hmm, this is not optimal - it offlines, removes and configures each
>>> target from scratch even if no changes were made.
>> Besides, it doesn't even seem to work properly: all targets get the same
>> tid...
>>
>>
> 
> You are right.
> 
> I suggest we do something like the delete option:
> 
> --update <ALL|tid=|targetname>
> 
> It would only update the target if it is not in use.
> ALL would update all targets which are not in use - 
> Targets which have initiators connected will not be updated.

I'm just working on --delete and --forcedelete, which I described in a previous thread ("Add option to delete all the targets").

I guess --update and --forceupdate with a similar logic would make sense?


-- 
Tomasz Chmielewski 
http://wpkg.org




More information about the stgt mailing list