From afcf861a95ee4c76fa8a2141fcaf62a34cee70ba Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 8 Apr 2007 23:59:39 +0000 Subject: Move zpool.cache from /etc/zfs/ to /boot/zfs/, so we can keep it on dedicated /boot/ file system and use ZFS for the root file system. --- etc/mtree/BSD.root.dist | 2 ++ sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h | 2 +- sys/contrib/opensolaris/uts/common/sys/fs/zfs.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist index d502f39..2fac377 100644 --- a/etc/mtree/BSD.root.dist +++ b/etc/mtree/BSD.root.dist @@ -16,6 +16,8 @@ .. modules .. + zfs + .. .. dev mode=0555 .. diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h b/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h index 4416a5a..bcf8594 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h +++ b/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h @@ -230,7 +230,7 @@ extern zpool_prop_t zpool_prop_iter(zpool_prop_f, void *, boolean_t); * The location of the pool configuration repository, shared between kernel and * userland. */ -#define ZPOOL_CACHE_DIR "/etc/zfs" +#define ZPOOL_CACHE_DIR "/boot/zfs" #define ZPOOL_CACHE_FILE "zpool.cache" #define ZPOOL_CACHE_TMP ".zpool.cache" diff --git a/sys/contrib/opensolaris/uts/common/sys/fs/zfs.h b/sys/contrib/opensolaris/uts/common/sys/fs/zfs.h index 4416a5a..bcf8594 100644 --- a/sys/contrib/opensolaris/uts/common/sys/fs/zfs.h +++ b/sys/contrib/opensolaris/uts/common/sys/fs/zfs.h @@ -230,7 +230,7 @@ extern zpool_prop_t zpool_prop_iter(zpool_prop_f, void *, boolean_t); * The location of the pool configuration repository, shared between kernel and * userland. */ -#define ZPOOL_CACHE_DIR "/etc/zfs" +#define ZPOOL_CACHE_DIR "/boot/zfs" #define ZPOOL_CACHE_FILE "zpool.cache" #define ZPOOL_CACHE_TMP ".zpool.cache" -- cgit v1.1