diff options
author | Karel Zak | 2008-11-27 12:08:44 +0100 |
---|---|---|
committer | Karel Zak | 2008-11-27 12:08:44 +0100 |
commit | 4fa5e73d16828c94234ba0aeafaec2470f79011c (patch) | |
tree | 3db4ea2d232e132a483cb824599bd544d8760132 | |
parent | tailf: unistd.h is included more than once (diff) | |
download | kernel-qcow2-util-linux-4fa5e73d16828c94234ba0aeafaec2470f79011c.tar.gz kernel-qcow2-util-linux-4fa5e73d16828c94234ba0aeafaec2470f79011c.tar.xz kernel-qcow2-util-linux-4fa5e73d16828c94234ba0aeafaec2470f79011c.zip |
mount: add i_version support
Signed-off-by: Karel Zak <kzak@redhat.com>
-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. */ |