]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 8641 - "zpool clear" and "zinject" don't work on "spare" or "replacing" vdevs
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Jan 2018 17:20:58 +0000 (09:20 -0800)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2018 17:20:58 +0000 (09:20 -0800)
commit1574c73bd0680cf3141e26627191120daba3fe8d
treea85d6f49b1aeea33177104334bef6b7b698d0485
parent7da8f8d81bf1fadc2d9dff10f0435fe601e919fa
OpenZFS 8641 - "zpool clear" and "zinject" don't work on "spare" or "replacing" vdevs

Add "spare" and "replacing" to the list of interior vdev types in
zpool_vdev_is_interior(), alongside the existing "mirror" and "raidz".
This fixes running "zinject -d" and "zpool clear" on spare and replacing
vdevs.

Authored by: Alan Somers <asomers@gmail.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Melikov <mail@gmelikov.ru>
Approved by: Gordon Ross <gwr@nexenta.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/8641
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/9a36801382
Closes #7060
lib/libzfs/libzfs_pool.c