[stgt] [PATCH 1/2] tgt-admin: check if direct-device exists before allocating it

ronnie sahlberg ronniesahlberg at gmail.com
Sat Sep 13 01:32:53 CEST 2008


On Fri, Sep 12, 2008 at 10:13 PM, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> ronnie sahlberg schrieb:
>>
>> On Fri, Sep 12, 2008 at 6:30 PM, Tomasz Chmielewski <mangoo at wpkg.org>
>> wrote:

>>> What --params= is needed here?
>>
>> --device-type=cd
>
> Am I correct that it will only work on lun creation, i.e.:
>
> tgtadm --lld iscsi --mode logicalunit --op new --tid 5 --lun 1 -b /dev/sda
> --device-type=cd
>
>
> But it's not possible to "update" it?
>
> tgtadm --lld iscsi --op update --mode logicalunit --tid 4 --lun=1
> --device-type=disk
>
>
> We still have:
>
>       LUN: 1
>           Type: cd/dvd
>
>

That makes sense. Some device types may use specially formatted files
(SSC) and may also use special backends  so it wouldnt make sense to
allow
you to change the device type post creation.


Tgtadm should give a warning though that "You cant change device type"
instead of silently ignoring the operation.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list