Date: Wed, 27 Oct 2010 00:32:29 +0100 From: Bruce Cran <bruce@cran.org.uk> To: Alexander Best <arundel@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: fsync(2) manual and hdd write caching Message-ID: <20101027003229.00002b91@unknown> In-Reply-To: <20101026213618.GA3013@freebsd.org> References: <20101026213618.GA3013@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Oct 2010 21:36:18 +0000
Alexander Best <arundel@freebsd.org> wrote:
> since there's a thread on freebsd-questions@ concerning fsync(2) and
> the fact that hdd write caching can cause this syscall to basically
> be a no op, could somebody please copy the BUGS section from sync(2)
> to fsync(2)?
Shouldn't the BUGS section of sync(2) be removed?
"The sync() system call may return before the buffers are completely
flushed."
But from
http://www.opengroup.org/onlinepubs/009695399/functions/sync.html :
"The writing, although scheduled, is not necessarily complete upon
return from sync()."
That would suggest it's not actually a bug.
--
Bruce Cran
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101027003229.00002b91>
