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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 12, 2008 at 10:13 PM, Tomasz Chmielewski <mangoo@xxxxxxxx> wrote:
> ronnie sahlberg schrieb:
>>
>> On Fri, Sep 12, 2008 at 6:30 PM, Tomasz Chmielewski <mangoo@xxxxxxxx>
>> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux