Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Turning off write buffer for USM-devices
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Wed Apr 06, 2005 2:42 pm    Post subject: Turning off write buffer for USM-devices Reply with quote

I have an iRiver IFP-790t which i use as a Usb Mass Storage device.
Trouble is, when I write to it all files is transferred to the write-buffer (that goes on a few seconds), then it transfers from the write buffer to the device, which takes about 5 minutes.

Is there some way to turn of the buffer, or perhaps set it to a maximum of say, ten bytes?
That way, when I transfer stuff I know it's complete when the transfer is done, not five minutes after...
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Wed Apr 06, 2005 2:50 pm    Post subject: Reply with quote

you should always umount the device before unplugging it, and the umount operation will not complete until the buffers are flushed, so this should be enough indication as to when the data is transferred.

alternatively you can disable the buffering by mounting with the sync and dir_sync options
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum