]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make 'zpool labelclear -f' work on offlined disks
authorTony Hutter <hutter2@llnl.gov>
Fri, 27 Aug 2021 16:26:49 +0000 (09:26 -0700)
committerTony Hutter <hutter2@llnl.gov>
Tue, 14 Sep 2021 21:36:37 +0000 (14:36 -0700)
commit2904ec57f0ede92a8b66d83035d329d903c1bf93
tree4a8fce247856a53b138914aecde7982ad79fb5e4
parentbc371b28067b3230674f605fc4734ce93759b4f2
Make 'zpool labelclear -f' work on offlined disks

This patch allows you to clear the label on offlined disks in an active
pool with `-f`.  Previously, labelclear wouldn't let you do that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #12511
cmd/zpool/zpool_main.c