summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-09-03 07:13:56 +0000
committerdg <dg@FreeBSD.org>1996-09-03 07:13:56 +0000
commit2b8eb49135acef777909d3179be9eee1bb7916d7 (patch)
tree2cb3520b06be8736a669422e68c54033893c39d2 /sbin/mount/mntopts.h
parent4aa33638eb33650fbc13c6c618f6c03ee02f487f (diff)
downloadFreeBSD-src-2b8eb49135acef777909d3179be9eee1bb7916d7.zip
FreeBSD-src-2b8eb49135acef777909d3179be9eee1bb7916d7.tar.gz
Implemented user side of "noatime" mount option. This option disables
the file access time update on reads and can be useful in reducing filesystem overhead in cases where the access time is not important (like Usenet news spools).
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r--sbin/mount/mntopts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 710b557..032d70e 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -42,7 +42,8 @@ struct mntopt {
/* User-visible MNT_ flags. */
#define MOPT_ASYNC { "async", 0, MNT_ASYNC, 0 }
-#define MOPT_NOAUTO { "auto", 1, 0, 0 }
+#define MOPT_NOATIME { "atime", 1, MNT_NOATIME, 0 }
+#define MOPT_NOAUTO { "auto", 1, 0, 0 }
#define MOPT_NODEV { "dev", 1, MNT_NODEV, 0 }
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC, 0 }
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID, 0 }
@@ -69,6 +70,7 @@ struct mntopt {
/* Standard options which all mounts can understand. */
#define MOPT_STDOPTS \
MOPT_FSTAB_COMPAT, \
+ MOPT_NOATIME, \
MOPT_NOAUTO, \
MOPT_NODEV, \
MOPT_NOEXEC, \
OpenPOWER on IntegriCloud