11diff --git a/common/config b/common/config
2- index 164381b7..88ae95b6 100644
2+ index 936ac22..0872664 100644
33--- a/common/config
44+++ b/common/config
5- @@ -120 ,8 +120 ,11 @@ export MKFS_PROG="$(type -P mkfs)"
5+ @@ -122 ,8 +122 ,11 @@ export MKFS_PROG="$(type -P mkfs)"
66 export MOUNT_PROG="$(type -P mount)"
77 [ "$MOUNT_PROG" = "" ] && _fatal "mount not found"
88
@@ -17,44 +17,15 @@ index 164381b7..88ae95b6 100644
1717 export FSSTRESS_PROG="./ltp/fsstress"
1818 [ ! -x $FSSTRESS_PROG ] && _fatal "fsstress not found or executable"
1919diff --git a/common/rc b/common/rc
20- index 154bc2dd..588ed598 100644
20+ index 5c4429e..21f0718 100644
2121--- a/common/rc
2222+++ b/common/rc
23- @@ -774,7 +774,7 @@ _scratch_mkfs()
24- local mkfs_status
23+ @@ -4545,7 +4545,7 @@ init_rc()
2524
26- case $FSTYP in
27- - nfs*|cifs|ceph|overlay|glusterfs|pvfs2|9p|virtiofs)
28- + nfs*|cifs|ceph|fuse.geesefs|overlay|glusterfs|pvfs2|9p|virtiofs)
29- # unable to re-create this fstyp, just remove all files in
30- # $SCRATCH_MNT to avoid EEXIST caused by the leftover files
31- # created in previous runs
32- @@ -1601,6 +1601,15 @@ _require_scratch_nocheck()
33- _notrun "this test requires a valid \$SCRATCH_MNT"
34- fi
35- ;;
36- + fuse.geesefs)
37- + echo $SCRATCH_DEV | grep -q ":" > /dev/null 2>&1
38- + if [ -z "$SCRATCH_DEV" -o "$?" != "0" ]; then
39- + _notrun "this test requires a valid \$SCRATCH_DEV"
40- + fi
41- + if [ ! -d "$SCRATCH_MNT" ]; then
42- + _notrun "this test requires a valid \$SCRATCH_MNT"
43- + fi
44- + ;;
45- pvfs2)
46- echo $SCRATCH_DEV | grep -q "://" > /dev/null 2>&1
47- if [ -z "$SCRATCH_DEV" -o "$?" != "0" ]; then
48- @@ -1798,6 +1807,12 @@ _require_test()
49- _notrun "this test requires a valid \$TEST_DIR"
50- fi
51- ;;
52- + fuse*)
53- + if [ ! -d "$TEST_DIR" ]
54- + then
55- + _notrun "this test requires a valid \$TEST_DIR"
56- + fi
57- + ;;
58- *)
59- if [ -z "$TEST_DEV" ] || [ "`_is_block_dev "$TEST_DEV"`" = "" ]
60- then
25+ # Sanity check that TEST partition is not mounted at another mount point
26+ # or as another fs type
27+ - _check_mounted_on TEST_DEV $TEST_DEV TEST_DIR $TEST_DIR $FSTYP || exit 1
28+ + _check_mounted_on TEST_DEV $TEST_DEV TEST_DIR $TEST_DIR $FSTYP$FUSE_SUBTYP || exit 1
29+ if [ -n "$SCRATCH_DEV" ]; then
30+ # Sanity check that SCRATCH partition is not mounted at another
31+ # mount point, because it is about to be unmounted and formatted.
0 commit comments