Skip to content

Commit

Permalink
scripts: zfs.sh: explicitly ignore unloaded modules when unloading
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Atkinson <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13356
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent d2bf748 commit b4e7679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ unload_modules_freebsd() {
unload_modules_linux() {
NAME="${KMOD_ZFS##*/}"
NAME="${NAME%.ko}"
$DELMOD "$NAME" || return
! [ -d "/sys/module/$NAME" ] || $DELMOD "$NAME" || return

if [ "$VERBOSE" = "yes" ]; then
echo "Successfully unloaded ZFS module stack"
Expand Down

0 comments on commit b4e7679

Please sign in to comment.