]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Update vdev state for spare vdev
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Fri, 24 Mar 2023 17:30:38 +0000 (22:30 +0500)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2023 17:30:38 +0000 (10:30 -0700)
commita05263b7aa2ae38b50a159b3d2b22f3a454178ab
treefe903ba04e281260e941d86edf7f67255fbe2ffa
parent0ad5f4344238b548e2240a405d418f7af9290623
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
module/zfs/spa.c