Ken, Jan, On Tuesday 24 May 2005 03:25, ken wrote:
...
Jan,
You definitely don't want to disable sync. Instead, you want to set the "commit" interval to something less frequent. The default is that sync happens every five seconds.
I think you're mistaken about what these options mean. Synchronous writing (the "sync" option) means that data written by a program is not retained (solely) in the kernel buffer at all, but is immediately written to the destination disk when the application issues a write(2) system call. This is what makes it safe to disconnect removable media such as flash RAM disk emulators immediately after the program(s) that write to them complete. On the other hand, the periodic "sync" performed by the sync daemon process(es) only affects files system volumes _not_ mounted with the sync option.
You'll need to edit /etc/hotplug/hotplug.subfs.functions to insert, say, "commit=15" to let the disk sync every 15 seconds. Have a look at the line in /etc/hotplug/hotplug.subfs.functions below 'case "$fstype" in' (line #247 in my version of that file)-- this is where "sync" is inserted into what becomes /etc/fstab (from what I can see from a casual browse of that file).
If the device is mounted with the "sync" option, the "commit=interval" option is irrelevant.
...
hth, ken
Randall Schulz