[stgt] [PATCH] Allow to create a MMC LUN without backing store
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Thu Jan 5 00:47:56 CET 2012
On Thu, 5 Jan 2012 10:42:55 +1100
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
> From a30876ca22685805285692e1e969f6fc07f4a24b Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> Date: Thu, 5 Jan 2012 10:35:41 +1100
> Subject: [PATCH] MMC: Allow creating MMC LUNS that do not have a backingstore.
>
> An MMC device without a backing store is emulated as an empty drive, with no media in it. TGTD will respond to all scsi i/o just like a scsi dved drive that does not have any media.
>
> As soon as a backing store is added at a later time, the TGTD emulation will switch to instead emulate a DVD drive with either a blank disk in the tray, that can be written to (if the file is zero-length) or as a DVD drive with a DVD-ROM disk in the tray (if the backing store is a .iso image)
>
> Being able to create DVD drives without any backing file is useful for when creating a jukebox. In that case it is most convenient to create the drive without any media loaded and then later use MTX to move media from astorage slot into the drive.
>
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> ---
> usr/tgtadm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Merged, thanks.
--
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