Writes to usb flash drive cached
Bug #24703 reported by
Thue Janus Kristensen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pmount (Ubuntu) |
Invalid
|
Medium
|
Martin Pitt |
Bug Description
Using an USB flash key, I have noticed that writes seem to be cached. Ie, if I
copy some files to the flash RAM nothing is actually written to the USB key, and
I have to go to the console and write "sync" or unmount before the writes take
effect.
This is not very intuitive for new users, who expect to be able to just remove
the flash RAM when they can see the activity light is not active.
The USB RAM should probably be mounted with "sync" option to prevent caching.
I am not an expert, but another good option would be to at least immediately
write all data asyncroneously in the background, to ensure that the USB drive
was keep busy until all changes were written to disk.
To post a comment you must log in.
I know Martin knows this already, but Thue, it seems that we can't win here:
pmount (0.8-2) unstable; urgency=high
* Urgency high since this fixes an RC bug, the fix should reach Sarge. patches/ 02-async_ by_default. patch:
* Added debian/
- Mount devices 'async' by default instead of 'sync'. This will avoid
physical damage of flash chips due to exaggerated updating of inode/FAT
structures and greatly speed up the write throughput. On the bad side
this makes it much less safe to remove devices without proper umounting.
- Replace option "--async" with option "--sync".
- Document change in the manpages.
- Closes: #309591
* debian/control: Correct package priority to optional, to match the katie
overrides.
-- Martin Pitt <email address hidden> Wed, 18 May 2005 15:41:13 +0200