From b85b4de49c49c84c0efe06ee47d510c3d9778167 Mon Sep 17 00:00:00 2001
From: bwzhou <bwzhou>
Date: Wed, 2 Jan 2008 16:19:01 +0000
Subject: [PATCH] Branch HEAD b=14485 r=green, bwzhou

allow the "noatime" mount option to be parsed by mount.lustre
---
 lustre/utils/mount_lustre.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c
index 469d0824f1..79e89e68b2 100644
--- a/lustre/utils/mount_lustre.c
+++ b/lustre/utils/mount_lustre.c
@@ -190,6 +190,16 @@ static const struct opt_map opt_map[] = {
   { "nodev",    0, MS_NODEV  },      /* don't interpret devices */
   { "sync",     0, MS_SYNCHRONOUS},  /* synchronous I/O */
   { "async",    1, MS_SYNCHRONOUS},  /* asynchronous I/O */
+  { "atime",    1, MS_NOATIME  },    /* set file access time on read */
+  { "noatime",  0, MS_NOATIME  },    /* do not set file access time on read */
+#ifdef MS_NODIRATIME
+  { "diratime", 1, MS_NODIRATIME },  /* set file access time on read */
+  { "nodiratime",0,MS_NODIRATIME },  /* do not set file access time on read */
+#endif
+#ifdef MS_RELATIME
+  { "relatime", 0, MS_RELATIME },  /* set file access time on read */
+  { "norelatime",1,MS_RELATIME },  /* do not set file access time on read */
+#endif
   { "auto",     0, 0         },      /* Can be mounted using -a */
   { "noauto",   0, 0         },      /* Can only be mounted explicitly */
   { "nousers",  1, 0         },      /* Forbid ordinary user to mount */
-- 
GitLab