mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
USBMSC: Always set LUN readonly flag.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user