mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Chris Friesen <cfriesen@nortel.com>
Cc: linux-kernel@vger.kernel.org, Hugh Blemings <hab@au1.ibm.com>
Subject: Re: why does fsync() on a tmpfs directory give EINVAL?
Date: Thu, 16 Jun 2005 13:57:08 -0700	[thread overview]
Message-ID: <20050616135708.4876c379.akpm@osdl.org> (raw)
In-Reply-To: <42B1DBF1.4020904@nortel.com>

Chris Friesen <cfriesen@nortel.com> wrote:
>
> 
> The man page for fsync() suggests that it is necessary to call it on the 
> directory fd.

yup.

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

bad.

> Is there any particular reason for this?

nope.

>  Would a patch that makes it 
> just return successfully without doing anything be accepted?

yup.

  reply	other threads:[~2005-06-16 20:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16 20:07 Chris Friesen
2005-06-16 20:57 ` Andrew Morton [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050616135708.4876c379.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=cfriesen@nortel.com \
    --cc=hab@au1.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®