Merged in gnagflow/nuttx (pull request #205)
USBMSC: Always set LUN readonly flag. Approved-by: Gregory Nutt
This commit is contained in:
commit
c225e12a2b
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user