USB mass storage writes not flushed
|Reported by:||Jiri Svoboda||Owned by:|
|Blocker for:||Depends on:|
It has been reported that when you mount a file system on a USB stick, modify it and then unmount (offline?) and pull it out, some or all of the modifications do not persist on the media.
Need to investigate this. Could be there is some write cache in the stick controller that needs to be flushed somehow, either via a SCSI command or on the USB or USB-MS layer.
If this is a SCSI command, it might be useful to do the flush when the file system is unmounted, rather when the device is offlined. This would mean either doing it when the file system closes the block device or extending the block device interface with a flush method.