common/rc: add scratch shutdown support for overlayfs
[xfstests-dev.git] / tests / generic / 388
index 4f5a63b98fe4b35edd268269ea727aa46c902e9b..e0f4821822991f89db88cbc99d2c5b2d33af31fb 100755 (executable)
@@ -54,6 +54,7 @@ _supported_fs generic
 _supported_os Linux
 
 _require_scratch
+_require_local_device $SCRATCH_DEV
 _require_scratch_shutdown
 _require_command "$KILLALL_PROG" "killall"
 
@@ -72,7 +73,7 @@ for i in $(seq 1 $((50 * TIME_FACTOR)) ); do
        # purposely include 0 second sleeps to test shutdown immediately after
        # recovery
        sleep $((RANDOM % 3))
-       ./src/godown $SCRATCH_MNT
+       _scratch_shutdown
 
        ps -e | grep fsstress > /dev/null 2>&1
        while [ $? -eq 0 ]; do