Re: syncing the disks when entering sleep

Matthew Garrett
2010-02-15T20:28:55Z

On Wed, Feb 10, 2010 at 07:42:43PM +0100, Rafael J. Wysocki wrote:

> That would matter if sync meant mandatory flushing all data to the storage
> medium, but it doesn't. From a filesystem point of view it's an advisory
> thing, something like "I wish you flushed buffers right now".

It's defined as forcing actual writing on Linux. It doesn't guarantee
that it'll be consistent (eg, XFS may flush to the journal rather than
the filesystem), but it should mean that all cached data is on disk in
some form.

--
Matthew Garrett | mjg59@srcf.ucam.org