]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Kernel part of reroot support - a way to change rootfs without reboot.
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Fri, 18 Sep 2015 17:32:22 +0000 (17:32 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Fri, 18 Sep 2015 17:32:22 +0000 (17:32 +0000)
commit0d3d0cc3588de0467a7e499640499f8e6725d4bb
tree64974d4c066398aa4020300d6dc8d32a856315a2
parent0510aedcd51ad288ed1b577c17f50915fba1d8af
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().

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698
lib/libc/sys/reboot.2
sys/kern/kern_shutdown.c
sys/kern/vfs_mountroot.c
sys/sys/reboot.h