This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: aio_fsync() a directory ?
- From: Al Viro <viro at ZenIV dot linux dot org dot uk>
- To: Xavier Roche <roche+kml2 at exalead dot com>
- Cc: Christoph Hellwig <hch at lst dot de>, libc-alpha at sourceware dot org, linux-fsdevel at vger dot kernel dot org
- Date: Wed, 24 Apr 2013 07:33:26 +0100
- Subject: Re: aio_fsync() a directory ?
- References: <513EEF07 dot 5090901 at 3ds dot com> <20130408212729 dot ED7592C085 at topped-with-meat dot com> <5163BA06 dot 30600 at exalead dot com> <20130411225058 dot 989CB2C07B at topped-with-meat dot com> <5167A305 dot 1010506 at exalead dot com> <5174FFBA dot 8030301 at exalead dot com> <20130424024857 dot GA27108 at lst dot de> <51776E22 dot 1050502 at exalead dot com>
On Wed, Apr 24, 2013 at 07:31:14AM +0200, Xavier Roche wrote:
> 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.
Original intent of _what_? With all due respect, original intent of
Austin Group is none of our concern - "we had always intended to make
that promise on your behalf, now we'd simply got around to saying so
clearly" inspires many things, but "oh, sure, it's binding for us now"
is *not* one of those. Suggestions to do anatomically impossible things,
OTOH...