svn commit: r290986 - stable/10/tools/tools/zfsboottest
Andriy Gapon
avg at FreeBSD.org
Tue Nov 17 15:18:53 UTC 2015
Author: avg
Date: Tue Nov 17 15:18:52 2015
New Revision: 290986
URL: https://svnweb.freebsd.org/changeset/base/290986
Log:
MFC r290452: zfsboottest: catch up with r241289, call zfs_spa_init() for
all found pools
Modified:
stable/10/tools/tools/zfsboottest/zfsboottest.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/tools/tools/zfsboottest/zfsboottest.c
==============================================================================
--- stable/10/tools/tools/zfsboottest/zfsboottest.c Tue Nov 17 15:14:16 2015 (r290985)
+++ stable/10/tools/tools/zfsboottest/zfsboottest.c Tue Nov 17 15:18:52 2015 (r290986)
@@ -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)) {
More information about the svn-src-stable-10
mailing list