bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported


From: Pino Toscano
Subject: Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported
Date: Fri, 26 Oct 2012 18:30:39 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; )

Alle venerdì 26 ottobre 2012, Samuel Thibault ha scritto:
> Svante Signell, le Fri 26 Oct 2012 08:03:43 +0200, a écrit :
> > On Thu, 2012-10-25 at 19:47 +0200, Samuel Thibault wrote:
> > > Roland McGrath, le Thu 25 Oct 2012 09:49:51 -0700, a écrit :
> > > > We don't generally handle MIG_BAD_ID.  That error indicates a
> > > > server not implementing the protocol for which it's being
> > > > used, which is a server bug.
> > > 
> > > Pino, in which case did you actually get MIG_BAD_ID precisely?

with sample.c:
int main()
{
fsync(STDOUT_FILENO)
}
$ ./sample | less

> (even if it's probably not right in going crazy if it doesn't return
> EINVAL).

Well, one could note throwing an error value which is not even a POSIX 
errno does not sound correct to send to userland.

> In the pipe case (i.e. pflocal), libtrivfs is used, EOPNOTSUPP is
> returned, right?

The run above would have fsync() set errno = -303, MIG_BAD_ID.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]