From: Xavier Roche <roche+kml2@exalead.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Xavier Roche <roche+kml2@exalead.com>,
libc-alpha@sourceware.org, linux-fsdevel@vger.kernel.org
Subject: Re: aio_fsync() a directory ?
Date: Wed, 24 Apr 2013 07:31:14 +0200 [thread overview]
Message-ID: <51776E22.1050502@exalead.com> (raw)
In-Reply-To: <20130424024857.GA27108@lst.de>
On 04/24/2013 04:48 AM, Christoph Hellwig wrote:
> This change is completely contrary to real world behaviour. No modern
> filesystem I know of implements this behaviour as the default, and performance
> with the coresponding mount options (usually -o dirsync on Linux) is terrible
> as it forces a write out of the log (or corresponding action on non-log based
> filesystems) and in the common case of volatile write caches a cache flush.
>
> Retrospectively claiming this as standards behaviour in a "clarification"
> is utterly wrong.
As I understand the wording, the original intent was to have all file
operations synchronized (ie. operation committed permanently) at the
"beginning" of the specification. The updated one suggests that an
implementation may be non-conformant, and allow fsync() on a directory
entry.
I'm also a bit puzzled by the default synchronization guarantee (which
would lead an I/O per open/rename/etc. operation ?) ; even if many
developers just do not care about filename synchronization. [ they are
probably assuming that the fsync() on the file itself will also flush
the related directory entrie(s) ]
next prev parent reply other threads:[~2013-04-24 5:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <513EEF07.5090901@3ds.com>
[not found] ` <20130408212729.ED7592C085@topped-with-meat.com>
[not found] ` <5163BA06.30600@exalead.com>
[not found] ` <20130411225058.989CB2C07B@topped-with-meat.com>
[not found] ` <5167A305.1010506@exalead.com>
[not found] ` <5174FFBA.8030301@exalead.com>
2013-04-24 2:48 ` aio_fsync() a directory ? Christoph Hellwig
2013-04-24 5:31 ` Xavier Roche [this message]
2013-04-24 6:33 ` Al Viro
2013-04-24 16:34 ` Roland McGrath
2013-04-24 16:54 ` Xavier Roche
2013-04-24 22:05 ` Rich Felker
2013-04-25 2:32 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51776E22.1050502@exalead.com \
--to=roche+kml2@exalead.com \
--cc=hch@lst.de \
--cc=libc-alpha@sourceware.org \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).