mirror_zfs/cmd
Ameer Hamza 0c928f7a37 ZED: Fix device type detection and pool iteration logic
During hotplug REMOVED events, devid matching fails for partition-based
spares because devid information is not stored in pool config for
partitioned devices. However, when devid is populated by the hotplug
event, the original code skipped the search logic entirely, skipping
vdev_guid matching and resulting in wrong device type detection that
caused spares to be incorrectly identified as l2arc devices.
Additionally, fix zfs_agent_iter_pool() to use the return value from
zfs_agent_iter_vdev() instead of relying on search parameters, which
was previously ignored. Also add pool_guid optimization to enable
targeted pool searching when pool_guid is available.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #17545
2025-08-05 12:32:28 -04:00
..
raidz_test SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zdb SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zed ZED: Fix device type detection and pool iteration logic 2025-08-05 12:32:28 -04:00
zfs Validate mountpoint on path-based unmount using statx 2025-08-05 12:27:25 -04:00
zinject SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zpool zpool: clarify ZPOOL_STATUS_REMOVED_DEV status message 2025-06-17 10:50:26 -07:00
zpool_influxdb SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zstream SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
arc_summary SPDX: license tags: BSD-2-Clause 2025-04-16 09:59:44 -07:00
arcstat.in arcstat: prevent ZeroDivisionError when L2ARC becomes empty 2025-05-28 16:00:28 -07:00
dbufstat.in SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
fsck.zfs.in cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am build: rename FORCEDEBUG_CPPFLAGS to LIBZPOOL_CPPFLAGS 2024-08-27 12:53:27 -07:00
mount_zfs.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_ids_to_path.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zgenhostid.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zhack.c SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zilstat.in SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
ztest.c dmu_tx: rename dmu_tx_assign() flags from TXG_* to DMU_TX_* (#17143) 2025-04-16 09:59:45 -07:00
zvol_wait zvol_wait logic may terminate prematurely 2022-10-11 12:12:04 -07:00