HomeFreeBSD

Fix error message when zfs module are already unloaded

Description

Fix error message when zfs module are already unloaded

Using zfs-sh -u on linux will fail with inaccurate message when the
zfs modules are already unloaded. Deal with the case where a module
is already unloaded; its USE_COUNT will be the empty string

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Adam Moss <c@yotes.com>
Closes #11627

Details

Provenance
Adam D. Moss <c@yotes.com>Authored on Feb 21 2021, 4:23 AM
GitHub <noreply@github.com>Committed on Feb 21 2021, 4:23 AM
Parents
rG11f2e9a491ba: vdev_ops: don't try to call vdev_op_hold or vdev_op_rele when NULL
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG9312e0fd1e16: Fix error message when zfs module are already unloaded (authored by Adam D. Moss <c@yotes.com>).Feb 21 2021, 4:23 AM