From 4fa5e73d16828c94234ba0aeafaec2470f79011c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Nov 2008 12:08:44 +0100 Subject: [PATCH] mount: add i_version support Signed-off-by: Karel Zak --- mount/mount.8 | 6 ++++++ mount/mount.c | 4 ++++ mount/mount_constants.h | 3 +++ 3 files changed, 13 insertions(+) diff --git a/mount/mount.8 b/mount/mount.8 index 3b847225..1846e11a 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 a34d4005..773335eb 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 d877f567..41311c05 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. */ -- 2.39.5