Date: 08 Nov 2005 17:03:06 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: freebsd-questions@freebsd.org Subject: Re: how do I tell FreeBSD to sync, for real ? Message-ID: <4464r2dch1.fsf@be-well.ilk.org> In-Reply-To: <Pine.LNX.4.21.0511081630280.8180-100000@shell.dhp.com> References: <Pine.LNX.4.21.0511081630280.8180-100000@shell.dhp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
user <user@dhp.com> writes: > Sometimes you delete a large batch of files, or you do some other serious > FS operations and the output of `df` does not tell you immediately of the > new disk space, etc. > > If you run something like: sync > > Or even: sync ; sync > > it still doesn't show up. You either have to wait for a while, or you > have to get silly with something like: > > sync ; sync ; sync ; sync ; sync ; sync ; sync > > (or unmount and remount the FS) > > ----- > > So my question is, well first off, why does this happen this way ? But > mostly what I want to know is, is there a more graceful way to tell > FreeBSD "sync for real this time, not just for joke only ?" > > Basically, is there a nicer way to get what I want than: > > sync ; sync ; sync ; sync ; sync ; sync ; sync "sleep 30"? http://www.usenix.org/publications/library/proceedings/usenix99/full_papers/mckusick/mckusick.pdf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4464r2dch1.fsf>