Merged in gnagflow/nuttx (pull request #205)

USBMSC: Always set LUN readonly flag.

Approved-by: Gregory Nutt
This commit is contained in:
Gregory Nutt 2017-02-09 01:25:58 +00:00
commit c225e12a2b

View File

@ -1529,6 +1529,7 @@ int usbmsc_bindlun(FAR void *handle, FAR const char *drvrpath,
lun->startsector = startsector;
lun->nsectors = nsectors;
lun->sectorsize = geo.geo_sectorsize;
lun->readonly = readonly;
/* If the driver does not support the write method, then this is read-only */