mirror_zfs/lib/libzfs
Christos Longros 6a717f31e6
Improve misleading error messages for ZPOOL_STATUS_CORRUPT_POOL
When devices are missing or claimed by another subsystem (e.g.
mdadm, LVM), zpool import reports "The pool metadata is corrupted"
and suggests destroying the pool. This is misleading because the
metadata is not necessarily corrupted -- it may simply be incomplete
due to inaccessible devices.

Update the status, action, and recovery messages to acknowledge
that missing devices can trigger this status, and suggest checking
device availability before resorting to pool destruction.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Longros <chris.longros@gmail.com>
Closes #18251
Closes #8236
2026-02-23 09:41:24 -08:00
..
os libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c zfs: replace uu_avl with sys/avl 2025-11-17 06:21:26 -08:00
libzfs_config.c zfs: replace uu_avl with sys/avl 2025-11-17 06:21:26 -08:00
libzfs_crypto.c libzpool: remove global libzpool includes 2025-11-12 10:03:15 -08:00
libzfs_dataset.c Add snapshots_changed_nsecs dataset property 2026-01-06 09:36:20 -08:00
libzfs_diff.c Prefer VERIFY0(n) over VERIFY(n == 0) 2025-08-07 11:40:59 -07:00
libzfs_impl.h libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_import.c Prefer VERIFY0(n) over VERIFY(n == 0) 2025-08-07 11:40:59 -07:00
libzfs_iter.c Sort the blocking snapshots list #12751 (#17264) 2025-05-01 17:40:23 -07:00
libzfs_mount.c libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_pool.c Improve misleading error messages for ZPOOL_STATUS_CORRUPT_POOL 2026-02-23 09:41:24 -08:00
libzfs_sendrecv.c libzfs: ignoring unreachable code 2025-11-07 09:27:18 -05:00
libzfs_share_nfs.c libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_share.c libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_share.h libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_status.c Suppress some ashift warnings 2025-10-13 10:41:42 -07:00
libzfs_util.c Detect a slow raidz child during reads 2025-09-10 15:25:03 -07:00
libzfs.abi Add vdev property to disable vdev scheduler 2026-02-23 09:34:33 -08:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00