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 <xifeng@redhat.com>
Acked-by: Steve French <smfrench@gmail.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
xiaoli feng
2018-05-31 12:10:14 +08:00
committed by Eryu Guan
parent f7f040063c
commit b96c9912a7
+6 -3
View File
@@ -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()