Skip site navigation (1)Skip section navigation (2)
Date:      20 Aug 2001 12:32:19 +0200
From:      Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
To:        freebsd-stable@freebsd.org
Subject:   fsync semantics and directory changes
Message-ID:  <m3bslbowcs.fsf@emma1.emma.line.org>

next in thread | raw e-mail | index | archive | help
Hail,

I'm wondering how to fsync() changes to a directory such as link() with
softupdates or async mode. Linux has the "open and fsync the directory"
approach. 

With softupdates, fsync() syncs directory corresponding to the open file
handle.

However, how do I sync unlinks, for example?

Would opening a directory and fsync()ing flush all pending changes to
the directory and guarantee fsync() does not return before writes are
written (assuming write caches in the disk drive are switched off, of
course)?

-- 
Matthias Andree

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m3bslbowcs.fsf>