]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r287964:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 12 Jan 2016 10:11:29 +0000 (10:11 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 12 Jan 2016 10:11:29 +0000 (10:11 +0000)
commitb2e9faa7c75608df1b3b978ce46bc5c7425a45a5
tree80e73a1e8e4e3f10ec17f3c3b146a796efee3373
parent4ff0b2bdd2445ef24b1aa4bc23c0b1a39c6d29d5
MFC r287964:

Kernel part of reroot support - a way to change rootfs without reboot.

Note that the mountlist manipulations are somewhat fragile, and not very
pretty.  The reason for this is to avoid changing vfs_mountroot(), which
is (obviously) rather mission-critical, but not very well documented,
and thus hard to test properly.  It might be possible to rework it to use
its own simple root mount mechanism instead of vfs_mountroot().

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698

git-svn-id: svn://svn.freebsd.org/base/stable/10@293743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/reboot.2
sys/kern/kern_shutdown.c
sys/kern/vfs_mountroot.c
sys/sys/reboot.h