]> git.proxmox.com Git - mirror_zfs.git/commit
Fix vd_path and error in spa_vdev_remove()
authorIgor K <igor@dilos.org>
Fri, 22 Mar 2019 20:25:07 +0000 (23:25 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Mar 2019 20:25:07 +0000 (13:25 -0700)
commitc048ddaf332504765696a456ab572d6f041051a2
tree79d502bdca25ed1f6c1390980652c0154316d793
parent234234ca4de9b2121f69d2cd3b2928197234336d
Fix vd_path and error in spa_vdev_remove()

Make a local copy of the vd_path and preserve the removal error
for use in spa_history_log_internal().  This is required because
after spa_vdev_exit() there is nothing preventing the vdev state
from changing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Igor Kozhukhov <igor@dilos.org>
Closes #8522
module/zfs/vdev_removal.c