]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add flag to disable inital reboot(8) userland sync
authorsmh <smh@FreeBSD.org>
Tue, 15 Dec 2015 14:17:07 +0000 (14:17 +0000)
committersmh <smh@FreeBSD.org>
Tue, 15 Dec 2015 14:17:07 +0000 (14:17 +0000)
commit43c2ba56ac39d9361a4e4e448ca1a34aba7044ca
tree150c5dbcae553d5ca08f564bf63af36085cfaa34
parentd195f06a0409a3e16af20c7b073af74abf9ae81a
Add flag to disable inital reboot(8) userland sync

Add -N flag to reboot(8) which bypasses the userland sync(2) during
reboot(8) while still allow the kernel sync during the reboot(2) syscall
to occur.

An example use of this is when rebooting with disconnected iSCSI sessions
which would otherwise cause the reboot to hang on BIOs that will never
complete.

Reviewed by: bjk
MFC after: 2 weeks
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D4449
sbin/reboot/reboot.8
sbin/reboot/reboot.c