From 9fddc96a64d505d0024be41d34422033c65d48f7 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Tue, 25 Nov 2008 09:35:28 -0800 Subject: [PATCH] 6737463 panic while trying to write out config file if root pool import fails --- usr/src/uts/common/fs/zfs/spa_config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/src/uts/common/fs/zfs/spa_config.c b/usr/src/uts/common/fs/zfs/spa_config.c index ee425a9169..252869d69b 100644 --- a/usr/src/uts/common/fs/zfs/spa_config.c +++ b/usr/src/uts/common/fs/zfs/spa_config.c @@ -208,6 +208,9 @@ spa_config_sync(spa_t *target, boolean_t removing, boolean_t postsysevent) ASSERT(MUTEX_HELD(&spa_namespace_lock)); + if (rootdir == NULL) + return; + /* * Iterate over all cachefiles for the pool, past or present. When the * cachefile is changed, the new one is pushed onto this list, allowing -- 2.11.4.GIT