Subject: Re: ACPI suspend support.
To: Lennart Augustsson <lennart@augustsson.net>
From: Daniel Carosone <dan@geek.com.au>
List: tech-kern
Date: 01/26/2005 19:18:40
--T4IYkFBVPN84tP7K
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 26, 2005 at 09:10:10AM +0100, Lennart Augustsson wrote:
> How do you sync a disk these days?  I have noticed that when using
> softdeps there can be a LOT of disk activity left after the sync
> when shutting down. =20

That's not actually softdeps, its all the atime updates for inodes
that haven't otherwise been changed.  These days, such inodes are only
written when the vnode is reclaimed.

> I'd like a way to force everything out to disk,
> but I don't know how anymore.

There's no 'official' way to do it, it would be nice to have one.  I
found what appears to be at least a partial hack/workaround recently:

 # cd /home
 # umount /home

This seems to busy the disk for some time, then fails with EBUSY.

--
Dan.

--T4IYkFBVPN84tP7K
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iD8DBQFB91JfEAVxvV4N66cRAk44AKCCuVT9GIKddDwxgfvwL4MVg29dmwCgo3OZ
kMlYnOOZ6/hzUs521Ziapr0=
=T/u1
-----END PGP SIGNATURE-----

--T4IYkFBVPN84tP7K--