aio_fsync() a directory ?
Roland McGrath
roland@hack.frob.com
Mon Apr 8 22:37:00 GMT 2013
> 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
More information about the Libc-alpha
mailing list