]> git.proxmox.com Git - mirror_zfs.git/commit
Fix incorrect spare vdev state after replacing
authorIsaac Huang <he.huang@intel.com>
Thu, 23 Feb 2017 18:32:15 +0000 (11:32 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Feb 2017 18:32:15 +0000 (10:32 -0800)
commit6d82f98c3d9f83045a801df60f904421b101faa9
tree17917e3b6ac099b2eeb7c6b267bed63260dead19
parent100790a8dd7c7cbbcf35871d7361429e2ae09435
Fix incorrect spare vdev state after replacing

After a hot spare replaces an OFFLINE vdev, the new
parent spare vdev state is set incorrectly to OFFLINE.
The correct state should be DEGRADED. The incorrect
OFFLINE state will prevent top-level vdev from reading
the spare vdev, thus causing unnecessary reconstruction.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Don Brady <don.brady@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Isaac Huang <he.huang@intel.com>
Closes #5766
Closes #5770
module/zfs/spa.c