mnt_flags |= MNT_NOEXEC;
if (flags & MS_NOATIME)
mnt_flags |= MNT_NOATIME;
+ if (flags & MS_NOCMTIME)
+ mnt_flags |= MNT_NOCMTIME;
if (flags & MS_NODIRATIME)
mnt_flags |= MNT_NODIRATIME;
if (flags & MS_STRICTATIME)
{ MNT_NODEV, ",nodev" },
{ MNT_NOEXEC, ",noexec" },
{ MNT_NOATIME, ",noatime" },
+ { MNT_NOCMTIME, ",nocmtime" },
{ MNT_NODIRATIME, ",nodiratime" },
{ MNT_RELATIME, ",relatime" },
{ 0, NULL }
flags |= ST_NOEXEC;
if (mnt_flags & MNT_NOATIME)
flags |= ST_NOATIME;
+ if (mnt_flags & MNT_NOCMTIME)
+ flags |= ST_NOCMTIME;
if (mnt_flags & MNT_NODIRATIME)
flags |= ST_NODIRATIME;
if (mnt_flags & MNT_RELATIME)
#define MNT_NODIRATIME 0x10
#define MNT_RELATIME 0x20
#define MNT_READONLY 0x40 /* does the user want this to be r/o? */
+#define MNT_NOCMTIME 0x80 /* allow O_NOCMTIME to stop cmtime updates */
#define MNT_SHRINKABLE 0x100
#define MNT_WRITE_HOLD 0x200
#define ST_NOATIME 0x0400 /* do not update access times */
#define ST_NODIRATIME 0x0800 /* do not update directory access times */
#define ST_RELATIME 0x1000 /* update atime relative to mtime/ctime */
+#define ST_NOCMTIME 0x2000 /* allow O_NOCMTIME to stop cmtime updates */
#endif
#define MS_I_VERSION (1<<23) /* Update inode I_version field */
#define MS_STRICTATIME (1<<24) /* Always perform atime updates */
#define MS_LAZYTIME (1<<25) /* Update the on-disk [acm]times lazily */
+#define MS_NOCMTIME (1<<26) /* allow O_NOCMTIME to stop cmtime updates */
/* These sb flags are internal to the kernel */
#define MS_NOSEC (1<<28)