libsa/zfs: add error printf() in zfs_spa_init()

All other error exits from this function print something.
This commit is contained in:
Gleb Smirnoff
2025-07-10 20:04:50 -07:00
parent 02d06043ba
commit f1eceb963c
+3 -1
View File
@@ -3541,8 +3541,10 @@ zfs_spa_init(spa_t *spa)
return (EIO);
}
rc = load_nvlist(spa, config_object, &nvlist);
if (rc != 0)
if (rc != 0) {
printf("ZFS: failed to load pool %s nvlist\n", spa->spa_name);
return (rc);
}
rc = zap_lookup(spa, &dir, DMU_POOL_ZPOOL_CHECKPOINT,
sizeof(uint64_t), sizeof(checkpoint) / sizeof(uint64_t),