HomeFreeBSD

Make 'zpool labelclear -f' work on offlined disks

Description

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

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Aug 27 2021, 4:26 PM
Parents
rGbc371b28067b: vdev_id: Return an error if config file is not found
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG2904ec57f0ed: Make 'zpool labelclear -f' work on offlined disks (authored by Tony Hutter <hutter2@llnl.gov>).Sep 14 2021, 9:36 PM