public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* why does fsync() on a tmpfs directory give EINVAL?
@ 2005-06-16 20:07 Chris Friesen
  2005-06-16 20:57 ` Andrew Morton
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Friesen @ 2005-06-16 20:07 UTC (permalink / raw)
  To: linux-kernel


The man page for fsync() suggests that it is necessary to call it on the 
directory fd.

However, in the case of tmpfs, fsync() on the file completes, but on the 
directory it returns -1 with errno==EINVAL.

Is there any particular reason for this?  Would a patch that makes it 
just return successfully without doing anything be accepted?

Chris

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-06-17 14:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 20:07 why does fsync() on a tmpfs directory give EINVAL? Chris Friesen
2005-06-16 20:57 ` Andrew Morton
2005-06-16 22:54   ` Chris Friesen
2005-06-16 23:29     ` Andrew Morton
2005-06-17  1:52       ` Chris Friesen
2005-06-17  1:57         ` Andrew Morton
2005-06-17  4:46           ` Chris Wedgwood
2005-06-17 13:32           ` Hugh Dickins
2005-06-17 14:28             ` Chris Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox