Skip to contentSkip to conversation

common/rc: skip atime related tests on CIFS

PATCH New XiaoLi Feng 1 participant 1 message May 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 common/rc: skip atime related tests on CIFS

From: xiaoli feng <[email protected]>

Quoted 1 line

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.

---
 common/rc | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
common/rc +10 -3
index ffe5323..0295b30 100644
@@ -3242,9 +3242,16 @@ _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)
+			_notrun "atime related mount options have no effect on NFS"
+		;;
+		cifs)
+			_notrun "atime related mount options have no effect on CIFS"
+		;;
+	esac
+
 }
 
 _require_relatime()
Signature · 1 line
1.8.3.1