cvs commit: src/sys/kern kern_shutdown.c
alfred at freebsd.org
Wed Jul 21 11:34:45 PDT 2004
* Scott Long <scottl at freebsd.org> [040721 09:57] wrote:
> It should be noted that syncing on panic is almost never a good idea.
> The whole idea of panic() is to signal that the system has gotten into
> an inconsistent and unrecoverable state. Do you really want to trust it
> to spam your drive with buffers that are in an unknown state via a set
> of codepaths that are in an unknown state? It's much better to just
> step back and let fsck try to repair the damage. I can't remember a
> single time in the last 4 years when a panic actually successfuly synced
> out all of the buffers and shutdown the filesystem, so it's not likely
> that you'll avoid a fsck on reboot with this.
It's not about avoiding a fsck, it's about recovering the last 30+ seconds
of disk activity. Ie, files you've just created and such.
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684
More information about the cvs-all