This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: aio_fsync() a directory ?
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Xavier Roche <xavier dot roche at 3ds dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 8 Apr 2013 14:27:29 -0700 (PDT)
- Subject: Re: aio_fsync() a directory ?
- References: <513EEF07 dot 5090901 at 3ds dot com>
> Strangely, fsync() does not have this restriction (neither in the
> standard nor on the implementation) - was it on purpose ?
>
> http://pubs.opengroup.org/onlinepubs/009695399/functions/fsync.html
> http://pubs.opengroup.org/onlinepubs/009696699/functions/aio_fsync.html
>
> At last, is fsync'ing a directory the right way to commit operations on
> files entries ? If so, isn't it inconsistent not to accept this on the
> aio side ?
These are questions for the POSIX committee. Given the standard as it
stands (same in 1003.1-2008, though you cited 1003.1-2004), libc is doing
the right things.
Thanks,
Roland