generic: skip atime related tests on NFS

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>
This commit is contained in:
Eryu Guan
2014-11-10 18:06:23 +11:00
committed by Dave Chinner
parent 129444c393
commit f72abf5f8f
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -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