Date: Thu, 11 Sep 2008 18:20:13 +0200 From: Michel Talon <talon@lpthe.jussieu.fr> To: freebsd-questions@freebsd.org Subject: Re: File system corruption upon reboot with gmirror Message-ID: <20080911162013.GA27587@lpthe.jussieu.fr>
next in thread | raw e-mail | index | archive | help
Mike Bristow said:
> > What's this stuff? shutdown -r is implemented using reboot.
>
> Only when you give it -o. Otherwise it sends a signal to init,
> and init manages the shutdown. The code you quote is only
> run if -o is given
But the code is init implementing reboot is the same as in the commande
"reboot" and uses the call reboot(2)
/usr/src/sbin/init/init.c line 643
if (Reboot) {
/* Instead of going single user, let's reboot the
* machine */
sync();
alarm(2);
pause();
reboot(howto);
_exit(0);
}
Note the reboot(howto) which is exactly the same as in the command
reboot. If there are differences it may be in the number of sync(),
pause() and so on issued, i have not checked, but i would be surprised
that there is any significative difference between the several ways of
rebooting.
--
Michel TALON
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080911162013.GA27587>
