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 <106930537+ixhamza@users.noreply.github.com>Authored on Mar 24 2023, 5:30 PM
GitHub <noreply@github.com>Committed on Mar 24 2023, 5:30 PM
Parents
rG0ad5f4344238: Drop lying to the compiler in the fletcher4 code
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa05263b7aa2a: Update vdev state for spare vdev (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Mar 24 2023, 5:30 PM