tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NFS over-quota not detected if utimes() called before fsync()/close()

   Date: Fri, 5 Jul 2013 22:22:48 +0100
   From: David Laight <>

   Not according to 'man 2 close'.
   That only allows EBADF and EINTR (presumably for blocking close on
   character devices, sockets and? pipes).

   Most programs wouldn't want an fd left open just because a file was NFS
   and a write generated by close failed.

No matter what close(2) returns, it guarantees that if the specified
file descriptor was open, then it is closed.  EBADF means that file
descriptor wasn't open to begin with.  Any other error is just a hint
about what else is going on in the world.

Home | Main Index | Thread Index | Old Index