From: bwzhou Date: Wed, 2 Jan 2008 16:00:49 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~860 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ed307a98275e12da9d76442892971e3b3c6dc307;p=fs%2Flustre-release.git Branch b1_6 b=14485 r=green, bwzhou allow the "noatime" mount option to be parsed by mount.lustre --- diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 469d082..79e89e6 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 */