Re: fsync bug

2011-09-21 Thread Christopher Faylor
On Wed, Sep 21, 2011 at 03:07:21PM -0600, Eric Blake wrote: >On 09/21/2011 02:54 PM, Christopher Faylor wrote: >> On Wed, Sep 21, 2011 at 02:43:21PM -0600, Eric Blake wrote: >>> fsync() is required to work on read-only fds (in theory, you can sync >>> the atime metadata, which is a write operation

Re: fsync bug

2011-09-21 Thread Eric Blake
On 09/21/2011 02:54 PM, Christopher Faylor wrote: On Wed, Sep 21, 2011 at 02:43:21PM -0600, Eric Blake wrote: fsync() is required to work on read-only fds (in theory, you can sync the atime metadata, which is a write operation triggered by a read-only fd). But cygwin rejects this program, which

Re: fsync bug

2011-09-21 Thread Christopher Faylor
On Wed, Sep 21, 2011 at 02:43:21PM -0600, Eric Blake wrote: >fsync() is required to work on read-only fds (in theory, you can sync >the atime metadata, which is a write operation triggered by a read-only >fd). But cygwin rejects this program, which works on Linux: > >$ cat foo.c >#include >#inc

fsync bug

2011-09-21 Thread Eric Blake
fsync() is required to work on read-only fds (in theory, you can sync the atime metadata, which is a write operation triggered by a read-only fd). But cygwin rejects this program, which works on Linux: $ cat foo.c #include #include #include #include #include #include int main (void) {