git: f1eceb963caf - main - libsa/zfs: add error printf() in zfs_spa_init()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Jul 2025 03:05:49 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=f1eceb963cafb2095ce02eea77298370fa2f6fd3
commit f1eceb963cafb2095ce02eea77298370fa2f6fd3
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-07-11 03:04:50 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-07-11 03:04:50 +0000
libsa/zfs: add error printf() in zfs_spa_init()
All other error exits from this function print something.
---
stand/libsa/zfs/zfsimpl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
index 41ef5a46f30e..a3ce003782f8 100644
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -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),