[EMAIL PROTECTED] writes:
 > On Thu, 3 Feb 2000 15:12:00 -0500 (EST) , Russell Nelson writes:
 > > ext2 has always honored fsync.  You fsync a file, and its data goes
 > > off to disk.  You fsync a directory and its data goes off to disk.
 > > The only reason this surprises anyone is because the BSD hackers
 > > decided that fsyncing a file should also fsync the directory the file
 > > resides in.
 > 
 > What use is syncing the data to disk, if you can't
 > get to it after a crash?  It might as well have just
 > stayed in cache otherwise....

fsync the data if you want the data on disk.
fsync the directory if you want the metadata on disk.

What's complicated or difficult about that?

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.

Reply via email to