Re: [PATCH 3/3] usb: gadget: mass_storage: require backing file for non-removable LUNs

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

 



On Mon, 18 Jun 2012 16:18:41 +0200, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:

On Mon, 18 Jun 2012, Michal Nazarewicz wrote:

From: Michal Nazarewicz <mina86@xxxxxxxxxx>

The fsg_file_store() function does not check whether a LUN is removable or not
allowing one to specify an empty file name for a non-removable LUN.  This
commit adds explicit check of whether a file name is provided for
non-removable LUNs.

Looks okay.  Note that in file_storage.c, the "file" attribute isn't
writable if the LUN isn't removable, and the "ro" attribute isn't
writable if the LUN is a cdrom.  Maybe you would prefer to do things
that way instead.

Makes sense, I'll rewrite this patch to do that.

--
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux