HomeFreeBSD

Fix zpool subcommands error message with some unsupported options

Description

Fix zpool subcommands error message with some unsupported options

Both 'detach' and 'online' zpool subcommands, when provided with an
unsupported option, forget to print it in the error message:

  1. zpool online -t rpool vda3 invalid option '' usage: online [-e] <pool> <device> ...

This changes fixes the error message in order to include the actual
option that is not supported.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9270

Details

Provenance
loli10K <loli10K@users.noreply.github.com>Authored on Sep 4 2019, 8:36 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 4 2019, 8:36 PM
Parents
rGa49dbbbe06c6: Fix zfs-dkms .deb package warning in prerm script
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd02186ee2b05: Fix zpool subcommands error message with some unsupported options (authored by loli10K <loli10K@users.noreply.github.com>).Sep 4 2019, 8:36 PM