View Single Post
Old 05-28-2009, 06:05 AM   #8
Godzil
a pthread?? where? where?
Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.Godzil can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Godzil's Avatar
 
Posts: 1,763
Karma: 30462
Join Date: Mar 2009
Location: Somewhere in EU
Device: Newton MessagePad 2100, and only this
Windows by default doesn't use buffering on removable device like the Cybook (it's an option that you can change) so the modification are directly done without using a cache

For XP for exemple:
- right click on the Cybook HD icon and select properties
- In the "hardware" tab clic on the "Bookeen Cybook Gen3 -HD" in the list and clic que "propertie" button
- Choose the "Strategy" tab you have now two radio button with "Optimise for a fast remove" or "Optimise for performances" and the first should be selected by default.

The first one strategy is "don't use a cache to write, do them synchronously"
The second one is "use a write/read cache and flush them asynchronously"


(I translate the windows text from my french XP version to english, so they may differ a little from the original english text)


Quote:
Originally Posted by tompe View Post
In Linux I think buffers are flushed after a certain time interval. It is maybe 10 seconds or so. But it is easy to write and disconnect before buffers are flushed so you should always unmount the device before removing the cable. I suppose you can get a corrupt file system if you are unlucky and one symptom might be that you cannot write to the file system. But that is easily fixed by using fsck.
For Linux, if you want to be sure that the kernel/fs flush everything, just call sync(1) before anything else. The sync application force the VFS to flush all of it's caches

Last edited by Godzil; 05-28-2009 at 06:07 AM.
Godzil is offline   Reply With Quote