HomeFreeBSD

zpool: bogus error for invalid dedupditto value

Description

zpool: bogus error for invalid dedupditto value

When provided with an invalid 'dedupditto' value zpool prints
a misleading error message:

    $ sudo zpool set dedupditto=99 pp
    cannot set property for 'pp': property 'dedupditto'(14) not defined

Fix this by printing a meaningful error description for unsupported
'dedupditto' values.

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Nov 6 2018, 6:14 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 6 2018, 6:14 PM
Parents
rG09b85f2dedfa: ztest: reduce gangblock creation
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf0f978654581: zpool: bogus error for invalid dedupditto value (authored by LOLi <loli10K@users.noreply.github.com>).Nov 6 2018, 6:14 PM