diff options
author | avg <avg@FreeBSD.org> | 2013-07-09 08:37:42 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-07-09 08:37:42 +0000 |
commit | 6587719d8d4a7f498cd9c8e8d2acf8420c3b401d (patch) | |
tree | 3cabcbd61fc6d5c13c93a90b766118e42beb65cf /sys/cddl | |
parent | f49b6d5881ae72e7983f4d75a535753be42c76f3 (diff) | |
download | FreeBSD-src-6587719d8d4a7f498cd9c8e8d2acf8420c3b401d.zip FreeBSD-src-6587719d8d4a7f498cd9c8e8d2acf8420c3b401d.tar.gz |
zfs: load zpool.cache after a root fs is mounted
MFC after: 3 weeks
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c index aefc41a..836c222 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c @@ -1697,6 +1697,10 @@ spa_boot_init() spa_config_load(); } +#ifdef _KERNEL +EVENTHANDLER_DEFINE(mountroot, spa_boot_init, NULL, 0); +#endif + void spa_init(int mode) { |