From: aburford Date: Sat, 14 May 2022 16:37:08 +0000 (-0400) Subject: fix w-racer.sh umounting wrapfs stacked on itself X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=e75354c08e25d55e25b02389aab364a9477d833a;p=wrapfs-mgmt.git fix w-racer.sh umounting wrapfs stacked on itself --- diff --git a/tests/w-racer.sh b/tests/w-racer.sh index ef63812..987686f 100755 --- a/tests/w-racer.sh +++ b/tests/w-racer.sh @@ -36,7 +36,6 @@ case "$type" in wrapfs ) runcmd lsof $TMP_DIR runcmd umount $TMP_DIR - runcmd rmmod wrapfs ;; bind ) runcmd umount $TMP_DIR @@ -60,14 +59,17 @@ case "$lowertype" in runcmd umount $LOWER_DIR ;; wrapfs ) - runcmd lsof $LOWER_DIR - runcmd umount $LOWER_DIR runcmd lsof $SCRATCH_DIR runcmd umount $SCRATCH_DIR + runcmd lsof $LOWER_DIR + runcmd umount $LOWER_DIR esac +if test $type == "wrapfs"; then + runcmd rmmod wrapfs +fi } -dirs="$TMP_DIR $LOWER_DIR $SCRATCH_DIR" +dirs="$TMP_DIR $SCRATCH_DIR $LOWER_DIR" for d in $dirs; do if cat /proc/mounts | grep $d; then runcmd umount $d