This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH,HURD] implement syncfs
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Christoph Hellwig <hch at lst dot de>
- Cc: Pino Toscano <toscano dot pino at tiscali dot it>, libc-alpha at sourceware dot org, bug-hurd at gnu dot org
- Date: Mon, 19 Nov 2012 09:24:48 -0800 (PST)
- Subject: Re: [PATCH,HURD] implement syncfs
- References: <201211191800.51375.toscano.pino@tiscali.it><20121119171735.GA28731@lst.de>
> > +/* Make all changes done to all files on the file system associated
> > + with FD actually appear on disk. */
> > +int
> > +syncfs (int fd)
> > +{
> > + /* This is not actually synchronous; we don't wait. */
> > + error_t err = HURD_DPORT_USE (fd, __file_syncfs (port, 0, 0));
>
> Note that syncfs in Linux actually does wait for completion of the writeback,
> that's the whole point of the syscall.
In that case args should be 1, 0.