diff options
author | trasz <trasz@FreeBSD.org> | 2016-01-12 10:11:29 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-01-12 10:11:29 +0000 |
commit | 355c35a189c2f841c4660bf6e63e376f77a2c04b (patch) | |
tree | 80e73a1e8e4e3f10ec17f3c3b146a796efee3373 /sys/sys | |
parent | a35cfac66cd13b8a8193084a71a760710f87703e (diff) | |
download | FreeBSD-src-355c35a189c2f841c4660bf6e63e376f77a2c04b.zip FreeBSD-src-355c35a189c2f841c4660bf6e63e376f77a2c04b.tar.gz |
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
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/reboot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/reboot.h b/sys/sys/reboot.h index 6b8e25e..ebe688e 100644 --- a/sys/sys/reboot.h +++ b/sys/sys/reboot.h @@ -59,6 +59,7 @@ #define RB_RESERVED1 0x40000 /* reserved for internal use of boot blocks */ #define RB_RESERVED2 0x80000 /* reserved for internal use of boot blocks */ #define RB_PAUSE 0x100000 /* pause after each output line during probe */ +#define RB_REROOT 0x200000 /* unmount the rootfs and mount it again */ #define RB_MULTIPLE 0x20000000 /* use multiple consoles */ #define RB_BOOTINFO 0x80000000 /* have `struct bootinfo *' arg */ |