]> git.proxmox.com Git - mirror_zfs.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)
committerGitHub <noreply@github.com>
Fri, 27 Aug 2021 16:26:49 +0000 (10:26 -0600)
commit4dc115328f0fba1af1bfde923e65ab775219ce4b
tree526f128374ad3cc42daeace498ac309af912de6c
parent00888c08980578949155f45e2c23027e940405d6
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