]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/config: fix use of MODPROBE_RM_PATIENT_TIMEOUT_ARGS
authorLuis Chamberlain <mcgrof@kernel.org>
Tue, 8 Feb 2022 21:37:54 +0000 (13:37 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Feb 2022 16:30:32 +0000 (00:30 +0800)
When patient module removal support is detected on kmod
(note that this is not yet even merged onto kmod yet but
work in progress) the arguments required for it are not being
set yet. This was a typo, fix this.

This issue was spotted using shellcheck from blktests when adding
patient module removal support there. I'll post a patch next to
let folks evaluate if we should embrace shellcheck on fstests as
well.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/config

index 0566ab4a963e038971ac98da11f42c1e86dff04f..a9b393f7f0c7e655e7033602bda35577a0788e59 100644 (file)
@@ -280,7 +280,7 @@ else
                MODPROBE_PATIENT_RM_TIMEOUT_MS="$((MODPROBE_PATIENT_RM_TIMEOUT_SECONDS * 1000))"
                MODPROBE_RM_PATIENT_TIMEOUT_ARGS="-t $MODPROBE_PATIENT_RM_TIMEOUT_MS"
        fi
-       MODPROBE_REMOVE_PATIENT="modprobe -p $MODPROBE_RM_TIMEOUT_ARGS"
+       MODPROBE_REMOVE_PATIENT="modprobe -p $MODPROBE_RM_PATIENT_TIMEOUT_ARGS"
 fi
 export MODPROBE_REMOVE_PATIENT