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 <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13356
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent bd2e0b6 commit 4caae18
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 4caae18

Please sign in to comment.