[stgt] setting write cache fails in recent git

ronnie sahlberg ronniesahlberg at gmail.com
Fri Oct 17 04:02:51 CEST 2008


On Thu, Oct 16, 2008 at 11:21 PM, Doron Shoham <dorons at voltaire.com> wrote:
> Tomasz Chmielewski wrote:
>> Tomasz Chmielewski schrieb:
>>> Doron Shoham schrieb:
>>>
>>> (...)
>>>
>>>> I want to add bstype to the target show,
>>>> and to add additional option in the conf file of
>>>> tgt-admin("backing-store /dev/sdb <bstype>).
>>>> Does it sounds ok?
>>>> If so, Tomasz, can u please guide me how to add it to the tgt-admin?
>>>
>>> Could you give me an example tgtadm code which does this?
>>
>> I meant syntax, like:
>>
>> tgtadm --some option --here bstype
>>
>>
>
> You will define in the conf file:
> backing-store /dev/sdb <bstype>
> bstype can be aio, mmap, null, rdwr or ssc.
>

Instead to specify the bstype together with the directive to set the
path to the backingstore
what about instead specifying the bstype together with the device type instead ?

device-type <devtype> <bstype>

Since there is often a close relation between the device types and the
bstypes and since each devtype might only support a smaller subset of
all bstypes.

For example,   the device-type tape  can only be used together with
the ssc backend type.
Analog, the device-type disk  can NOT use the ssc bstype and this
should be flagged as an error.


ronnie sahlberg
--
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