]> git.proxmox.com Git - mirror_zfs.git/commit
Fix error message when zfs module are already unloaded
authorAdam D. Moss <c@yotes.com>
Sun, 21 Feb 2021 04:23:10 +0000 (20:23 -0800)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 04:23:10 +0000 (20:23 -0800)
commit9312e0fd1e162094ba2470408878879fa24eeaf7
treee0d63d9f53263e31ff922567fb36309e15de65a0
parent11f2e9a491baa2ae3fc00f6b8b892fa91a852ca1
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
scripts/zfs.sh