HomeFreeBSD

Update vdev state for spare vdev

Description

Update vdev state for spare vdev

zfsd fetches new pool configuration through ZFS_IOC_POOL_STATS but
it does not get updated nvlist configuration for spare vdev since
the configuration is read by spa_spares->sav_config. In this commit,
updating the vdev state for spare vdev that is consumed by zfsd on
spare disk hotplug.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #14653

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Mar 24 2023, 5:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 27 2023, 6:46 PM
Parents
rGdedd8243fc8c: zed: add hotplug support for spare vdevs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGaa7258ced0dd: Update vdev state for spare vdev (authored by Ameer Hamza <ahamza@ixsystems.com>).Mar 27 2023, 6:46 PM