[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: |
Samuel Thibault |
Subject: |
Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported |
Date: |
Fri, 26 Oct 2012 19:07:02 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Pino Toscano, le Fri 26 Oct 2012 18:30:39 +0200, a écrit :
> 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
Oh? I wonder how that produces MIG_BAD_ID: libtrivfs (used by pflocal)
is supposed to be returning EOPNOTSUPP when there is no underlying node,
which should be the case here.
> > (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.
AIUI, POSIX says there can be other, implementation-defined errors.
Samuel
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Pino Toscano, 2012/10/24
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Roland McGrath, 2012/10/25
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Samuel Thibault, 2012/10/25
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Svante Signell, 2012/10/26
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Samuel Thibault, 2012/10/26
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Pino Toscano, 2012/10/26
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported,
Samuel Thibault <=
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Richard Braun, 2012/10/26
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Samuel Thibault, 2012/10/26
- Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Roland McGrath, 2012/10/26
Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported, Pino Toscano, 2012/10/29