mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: add cifs support
Pass -cifs argument from the command line to enable cifs testing for $TEST_DEV. Also mention CIFS and missed UDF in README. Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Reviewed-by: Steve French <smfrench@gmail.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
cf02f80a95
commit
0e9141e49d
@@ -107,6 +107,8 @@ case "$FSTYP" in
|
||||
;;
|
||||
nfs)
|
||||
;;
|
||||
cifs)
|
||||
;;
|
||||
esac
|
||||
|
||||
# make sure we have a standard umask
|
||||
@@ -503,6 +505,9 @@ _test_mkfs()
|
||||
nfs*)
|
||||
# do nothing for nfs
|
||||
;;
|
||||
cifs)
|
||||
# do nothing for cifs
|
||||
;;
|
||||
udf)
|
||||
$MKFS_UDF_PROG $MKFS_OPTIONS $* $TEST_DEV > /dev/null
|
||||
;;
|
||||
@@ -552,6 +557,9 @@ _scratch_mkfs()
|
||||
nfs*)
|
||||
# do nothing for nfs
|
||||
;;
|
||||
cifs)
|
||||
# do nothing for cifs
|
||||
;;
|
||||
udf)
|
||||
$MKFS_UDF_PROG $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
|
||||
;;
|
||||
@@ -1017,6 +1025,9 @@ _require_scratch_nocheck()
|
||||
nfs*)
|
||||
_notrun "requires a scratch device"
|
||||
;;
|
||||
cifs)
|
||||
_notrun "requires a scratch device"
|
||||
;;
|
||||
tmpfs)
|
||||
if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ];
|
||||
then
|
||||
@@ -1074,6 +1085,15 @@ _require_test()
|
||||
nfs*)
|
||||
_notrun "requires a test device"
|
||||
;;
|
||||
cifs)
|
||||
echo $TEST_DEV | grep -q "//" > /dev/null 2>&1
|
||||
if [ -z "$TEST_DEV" -o "$?" != "0" ]; then
|
||||
_notrun "this test requires a valid \$TEST_DEV"
|
||||
fi
|
||||
if [ ! -d "$TEST_DIR" ]; then
|
||||
_notrun "this test requires a valid \$TEST_DIR"
|
||||
fi
|
||||
;;
|
||||
tmpfs)
|
||||
if [ -z "$TEST_DEV" -o ! -d "$TEST_DIR" ];
|
||||
then
|
||||
@@ -1866,6 +1886,9 @@ _check_test_fs()
|
||||
nfs)
|
||||
# no way to check consistency for nfs
|
||||
;;
|
||||
cifs)
|
||||
# no way to check consistency for cifs
|
||||
;;
|
||||
udf)
|
||||
# do nothing for now
|
||||
;;
|
||||
@@ -1904,6 +1927,9 @@ _check_scratch_fs()
|
||||
nfs*)
|
||||
# Don't know how to check an NFS filesystem, yet.
|
||||
;;
|
||||
cifs)
|
||||
# Don't know how to check a CIFS filesystem, yet.
|
||||
;;
|
||||
btrfs)
|
||||
_check_btrfs_filesystem $device
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user