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

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Jan 4 02:55:58 CET 2012


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