diff options
-rw-r--r-- | mount/mount.8 | 6 | ||||
-rw-r--r-- | mount/mount.c | 4 | ||||
-rw-r--r-- | mount/mount_constants.h | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/mount/mount.8 b/mount/mount.8 index 3b8472258..1846e11a0 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -636,6 +636,12 @@ This option implies the options (unless overridden by subsequent options, as in the option line .BR group,dev,suid ). .TP +.B iversion +Every time the inode is modified, the i_version field will be incremented. +.TP +.B noiversion +Do not increment the i_version inode field. +.TP .B nofail Do not report errors for this device if it does not exist. .TP diff --git a/mount/mount.c b/mount/mount.c index a34d40056..773335ebb 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -165,6 +165,10 @@ static const struct opt_map opt_map[] = { { "atime", 0, 1, MS_NOATIME }, /* Update access time */ { "noatime", 0, 0, MS_NOATIME }, /* Do not update access time */ #endif +#ifdef MS_I_VERSION + { "iversion", 0, 0, MS_I_VERSION }, /* Update inode I_version time */ + { "noiversion", 0, 1, MS_I_VERSION }, /* Don't update inode I_version time */ +#endif #ifdef MS_NODIRATIME { "diratime", 0, 1, MS_NODIRATIME }, /* Update dir access times */ { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */ diff --git a/mount/mount_constants.h b/mount/mount_constants.h index d877f567e..41311c05b 100644 --- a/mount/mount_constants.h +++ b/mount/mount_constants.h @@ -56,6 +56,9 @@ #ifndef MS_SHARED #define MS_SHARED (1<<20) /* 1048576 Shared*/ #endif +#ifndef MS_I_VERSION +#define MS_I_VERSION (1<<23) /* update inode I_version field */ +#endif /* * Magic mount flag number. Had to be or-ed to the flag values. */ |