From: Karel Zak Date: Thu, 27 Nov 2008 11:08:44 +0000 (+0100) Subject: mount: add i_version support X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9470da234b38da8578a4d3cd0c2f2b7495fa4d;p=util-linux mount: add i_version support Signed-off-by: Karel Zak --- diff --git a/mount/mount.8 b/mount/mount.8 index 818d5e09..56e6cef2 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -621,6 +621,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 bed792d2..d6b79d69 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -166,6 +166,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. */