[PATCH 5/5] tests: fincore/count, skip unsupported FS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>

Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
---
 tests/ts/fincore/count | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count
index fd50ff8..ac58850 100755
--- a/tests/ts/fincore/count
+++ b/tests/ts/fincore/count
@@ -31,6 +31,21 @@ function _dd
 	return $ret
 }
 
+function check_dd_fs_feat
+{
+	local testf="$TS_OUTDIR/ddtest"
+	rm -f "$testf"
+	touch "$testf"
+
+	# NFS seems to fail for direct AND append
+	_dd if=/dev/zero of="$testf" bs=1K count=2 oflag=direct,append &>/dev/null \
+		|| ts_skip "unsupported: dd oflag=direct,append"
+
+	# TODO: Should we check for sparse file support?
+
+	rm -f "$testf"
+}
+
 function run_dd_test
 {
     header=$1
@@ -94,6 +109,8 @@ fi
 ts_check_test_command "$TS_CMD_FINCORE"
 ts_cd "$TS_OUTDIR"
 
+check_dd_fs_feat
+
 INPUT=
 input=
 
-- 
1.8.5.6

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux