[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-api
Subject:    Re: [PATCH v3] introduce sys_syncfs to sync a single file system
From:       Andrew Morton <akpm () linux-foundation ! org>
Date:       2011-03-15 20:18:46
Message-ID: 20110315131846.4d41af3c.akpm () linux-foundation ! org
[Download RAW message or body]

On Tue, 15 Mar 2011 09:56:08 -0600
Andreas Dilger <adilger@dilger.ca> wrote:

> Should there be a "wait" argument or flag that allows an app to start the syncfs(), \
> do something, and then call again to wait for completion?

I don't think so.  If userspace wants to do that then fork().

> > Perhaps we should consider propagating errors out to the user
> > application rather than discarding them in kernel and pretending we
> > can't ever have a write error?

That would be nice, but is probably a pretty complex thing to
implement.  The manpage should include words indicating that syncfs()
can return an errno.  That way, userspace will hopefully have the
appropriate checks, whcih will become more useful if/when the kernel
implementation gets fixed up.

--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic