On Mon, 11 Jun 2012, Michal Nazarewicz wrote:+ Mass Storage Gadget (or MSG) acts as a USB Mass Storage device,
+ appearing to the host as a disk or a CD-ROM drive. It supports
+ multiple logical units (LUNs). Backing storage for each LUN is
+ provided by a regular file or a block device, access can be limited
+ to read-only, and gadget can indicate that it is removable and/or
+ CD-ROM (the latter implies read-only access).
Does CD-ROM really imply read-only? If not, shouldn't it?
+ - ro=b[,b...]
+
+ This parameter specifies whether each logical unit should be
+ reported as read only. This will prevent host from modifying the
+ backing files.
+
+ Note that if this flag for given logical unit is false but the
+ backing file could not be opened in read/write mode, the gadget
+ will fall back to read only mode anyway.
+
+ The default value for each logical unit is false.
Shouldn't the default be true for logical units that are cdroms?
Very good. When you make the small changes listed above, you can add
Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>