Skip to contentSkip to conversation

xfstests: skip generic/192 if noatime is set

PATCH Applied David Sterba 2 participants 2 messages Jul 3, 2013 – Jul 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: skip generic/192 if noatime is set

Test generic/192 fails if noatime is set

generic/192
-delta1 - access time after sleep in-core: 40
-delta2 - access time after sleep on-disk: 40
+delta1 - access time after sleep in-core: 0
+delta2 - access time after sleep on-disk: 0

but it's pointless to test atime effects with noatime.

---
 tests/generic/192 | 11 +++++++++++
 1 file changed, 11 insertions(+)
tests/generic/192 +11 -0
index a40c121..2b4e41c 100755
@@ -38,6 +38,13 @@ _access_time()
 	stat --format=%X $1
 }
 
+is_noatime_set() {
+	case "$MOUNT_OPTIONS" in
+		*noatime*) return 0;;
+	esac
+	return 1
+}
+
 # get standard environment, filters and checks
 . ./common/rc
 . ./common/filter
@@ -52,6 +59,10 @@ _supported_os Linux
 #delay=45
 delay=40
 
+if is_noatime_set; then
+	_notrun "this test makes no sense with noatime"
+fi
+
 testfile=$TEST_DIR/testfile
 rm -f $testfile
 rm -f $seqres.full
Signature · 6 lines
1.8.2

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · David Sterba

Test generic/192 fails if noatime is set

generic/192
-delta1 - access time after sleep in-core: 40
-delta2 - access time after sleep on-disk: 40
+delta1 - access time after sleep in-core: 0
+delta2 - access time after sleep on-disk: 0

but it's pointless to test atime effects with noatime.

Looks fine.

Applied. Thanks David.

-Ben

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs