HomeFreeBSD

Fix zpool set feature@<feature>=disabled

Description

Fix zpool set feature@<feature>=disabled

Commit e4010f2 accidentally allows zpool to set pool features to
"disabled"; this should only be allowed at pool creation. This commit
adds additional checks and test coverage to 'zpool set'.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7402

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Apr 11 2018, 9:45 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 11 2018, 9:45 PM
Parents
rGdfb1ad027f23: zfs(8): fix dedup omission during mdoc overhaul
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9966754ac55f: Fix zpool set feature@<feature>=disabled (authored by LOLi <loli10K@users.noreply.github.com>).Apr 11 2018, 9:45 PM