summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-11-17 15:18:52 +0000
committeravg <avg@FreeBSD.org>2015-11-17 15:18:52 +0000
commitc67545fc86b9f40cecc9349531138904be6df511 (patch)
treef3cd176cfbac1242d00c7bdabb692b4c066c55e1 /tools
parentea684fcafa16796c5924e959d9c73d72defb892a (diff)
downloadFreeBSD-src-c67545fc86b9f40cecc9349531138904be6df511.zip
FreeBSD-src-c67545fc86b9f40cecc9349531138904be6df511.tar.gz
MFC r290452: zfsboottest: catch up with r241289, call zfs_spa_init() for
all found pools
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/zfsboottest/zfsboottest.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/tools/zfsboottest/zfsboottest.c b/tools/tools/zfsboottest/zfsboottest.c
index 29e9a48..45715d9 100644
--- a/tools/tools/zfsboottest/zfsboottest.c
+++ b/tools/tools/zfsboottest/zfsboottest.c
@@ -136,19 +136,21 @@ main(int argc, char** argv)
}
}
+ STAILQ_FOREACH(spa, &zfs_pools, spa_link) {
+ if (zfs_spa_init(spa)) {
+ fprintf(stderr, "can't init pool %s\n", spa->spa_name);
+ exit(1);
+ }
+ }
+
+ spa_all_status();
+
spa = STAILQ_FIRST(&zfs_pools);
if (spa == NULL) {
fprintf(stderr, "no pools\n");
exit(1);
}
- if (zfs_spa_init(spa)) {
- fprintf(stderr, "can't init pool\n");
- exit(1);
- }
-
- spa_all_status();
-
#if 0
uint64_t rootobj;
if (zfs_get_root(spa, &rootobj)) {
OpenPOWER on IntegriCloud