USBMSC: Always set LUN readonly flag.
This commit is contained in:
parent
f126cd9d46
commit
cfe7c4012e
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue