HomeFreeBSD

Add explicit error for device_rebuild being disabled

Description

Add explicit error for device_rebuild being disabled

Currently, you get back "can only attach to mirrors and top-level disks"
unconditionally if zpool attach returns ENOTSUP, but that also happens
if, say, feature@device_rebuild=disabled and you tried attach -s.

So let's print an error for that case, lest people go down a rabbit hole
looking into what they did wrong.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #11414
Closes #12680

Details

Provenance
rincebrain_gmail.comAuthored on Oct 29 2021, 10:55 PM
GitHub <noreply@github.com>Committed on Oct 29 2021, 10:55 PM
Parents
rG4476ccd906a3: Normalize property names for zfs receive
Branches
Unknown
Tags
Unknown