zfsboottest: catch up with r241289, call zfs_spa_init() for all found pools
MFC after: 8 days
This commit is contained in:
parent
b6b87995cc
commit
8787f18062
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290452
@ -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);
|
spa = STAILQ_FIRST(&zfs_pools);
|
||||||
if (spa == NULL) {
|
if (spa == NULL) {
|
||||||
fprintf(stderr, "no pools\n");
|
fprintf(stderr, "no pools\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zfs_spa_init(spa)) {
|
|
||||||
fprintf(stderr, "can't init pool\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
spa_all_status();
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
uint64_t rootobj;
|
uint64_t rootobj;
|
||||||
if (zfs_get_root(spa, &rootobj)) {
|
if (zfs_get_root(spa, &rootobj)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user