[stgt] [PATCH] Allow to create a MMC LUN without backing store

ronnie sahlberg ronniesahlberg at gmail.com
Thu Jan 5 00:42:55 CET 2012


Tomo,
Please find the patch re-attached with more verbose description.

A MMC device without a backingstore is emulated as a drive with no
disk/media inserted.
Once a backingstore is added at later stage, this changes emulation to
"disk is now inserted"


(
Since SSC also support removable media, it may be useful to do the same for SSC.
I do not know enough about the SSC emualtion to know if the SSC
emulation supports
"no backingstore == emulate tape drive with no tape loaded".
If it doesnt, it might be worth adding at some stage.
)


regards
ronnie sahlberg


On Wed, Jan 4, 2012 at 12:55 PM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> On Sat, 24 Dec 2011 17:41:35 +1100
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>
>> From 33fa2ee29adfcaba5e89fcc6aecf737f4a2cfc38 Mon Sep 17 00:00:00 2001
>> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
>> Date: Sat, 24 Dec 2011 13:02:06 +1100
>> Subject: [PATCH] TGTADM: Allow creating CD/DVD devices that do not have a backingstore
>>
>>
>> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
>> ---
>>  usr/tgtadm.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> Can you please resend this patch with the proper description?
>
> tgt works properly when an initioator accesses to an lu that doesn't
> have backingstore, right?
>
>
>> diff --git a/usr/tgtadm.c b/usr/tgtadm.c
>> index 41e9e99..7dca0f8 100644
>> --- a/usr/tgtadm.c
>> +++ b/usr/tgtadm.c
>> @@ -779,7 +779,7 @@ int main(int argc, char **argv)
>>                                         "allowed/supported\n", rc);
>>                               exit(EINVAL);
>>                       }
>> -                     if (!path) {
>> +                     if (!path && dev_type != TYPE_MMC) {
>>                               eprintf("'backing-store' option "
>>                                               "is necessary\n");
>>                               exit(EINVAL);
>> --
>> 1.7.3.1
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MMC-Allow-creating-MMC-LUNS-that-do-not-have-a-backi.patch.gz
Type: application/x-gzip
Size: 832 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120105/6862ba69/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MMC-Allow-creating-MMC-LUNS-that-do-not-have-a-backi.patch
Type: text/x-diff
Size: 1478 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120105/6862ba69/attachment-0002.patch>


More information about the stgt mailing list