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

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

 



On Sat, 24 Dec 2011 17:41:35 +1100
ronnie sahlberg <ronniesahlberg@xxxxxxxxx> wrote:

> From 33fa2ee29adfcaba5e89fcc6aecf737f4a2cfc38 Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> 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@xxxxxxxxx>
> ---
>  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@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