From: xiaoli feng Date: Thu, 31 May 2018 04:10:14 +0000 (+0800) Subject: common/rc: skip atime related tests on CIFS X-Git-Tag: v2022.05.01~1515 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b96c9912a72478dcaa96882187802c3c5838fede;p=users%2Fhch%2Fxfstests-dev.git common/rc: skip atime related tests on CIFS From the feedback of cifs developer, the behaviour of atime/noatime for cifs is basically noatime always. So the atime related mount options have no effect on cifs mounts. And Skip these tests on CIFS. Signed-off-by: xiaoli feng Acked-by: Steve French Acked-by: Ronnie Sahlberg Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index a4364972c..f04c9ea2f 100644 --- a/common/rc +++ b/common/rc @@ -3243,9 +3243,12 @@ _exclude_scratch_mount_option() _require_atime() { _exclude_scratch_mount_option "noatime" - if [ "$FSTYP" == "nfs" ]; then - _notrun "atime related mount options have no effect on NFS" - fi + case $FSTYP in + nfs|cifs) + _notrun "atime related mount options have no effect on $FSTYP" + ;; + esac + } _require_relatime()