LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 11-16-2007, 07:35 AM   #1
jrfk2
LQ Newbie
 
Registered: Jan 2006
Posts: 24

Rep: Reputation: 0
flush vs sync for fstab vfat hotplug devices


on suse, I was using sync in the fstab entry for the vfat fs for my hotplug devices, like memory key.

It was slow, but I believe all my data was actually written to the device by the time my write was complete, and no data was still cached.

Then found out about the flush option (http://git.kernel.org/?p=linux/kerne...f195d7347ce3e4) and its much faster, and most of the data seems to be written to the device but there is no guarantee its done when my write completes. Does anyone know if I am guaranteed if all the data is written to the device by the time I close the file I am writing?

Basically the concern is with flush, when I would get back any kind of i/o error if there is a problem comitting the data to the media? By flie close, or not till unmount if then ...?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting external devices to stay put with fstab-sync BWebb Linux - General 4 12-19-2006 04:05 PM
How do i use fstab-sync ginda Fedora 2 02-03-2005 10:34 AM
How to use fstab-sync? ginda Fedora 0 01-25-2005 01:42 PM
Using fstab-sync ?? mickeyboa Fedora 0 12-05-2004 09:17 AM
usb devices not seen despite hotplug Emmanuel_uk Linux - Newbie 2 11-18-2004 02:36 AM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration