]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic: skip atime related tests on NFS
authorEryu Guan <eguan@redhat.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
From nfs(5) we can know that atime related mount options have no
effect on NFS mounts, so add _require_atime() helper to skip atime
tests on NFS

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/generic/003
tests/generic/192

index 961e0b8485f18bfefdb01da62cbc94dcf049ef6e..fc18520da4b1c4f4d068404b0e4d30cee1391d28 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2389,6 +2389,13 @@ _verify_reflink()
                || echo "$1 and $2 are not reflinks: different extents"
 }
 
+_require_atime()
+{
+       if [ "$FSTYP" == "nfs" ]; then
+               _notrun "atime related mount options have no effect on NFS"
+       fi
+}
+
 _require_relatime()
 {
         _scratch_mkfs > /dev/null 2>&1
index 83d6f90093973b3ca5275cefc5db9ea84440b9d2..7ffd09a36235c4dfd91de46934259cd0478dc02f 100755 (executable)
@@ -47,6 +47,7 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_atime
 _require_relatime
 
 rm -f $seqres.full
index b2da35882713d83aebd4e6be2028805256d09232..5b6cfbc96efec6bffe46c1ab82e294e738d7cf62 100755 (executable)
@@ -54,6 +54,7 @@ is_noatime_set() {
 _supported_fs generic
 _supported_os Linux
 _require_test
+_require_atime
 #delay=150
 #delay=75
 #delay=60