summaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-03-02 09:38:36 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-03-02 09:38:36 +0000
commit322646ef055f316e0cc138add35c58316a4de863 (patch)
treecd239d32c993f24e7ce5fbfdaa710c38faed1e41 /sbin/mount/mntopts.h
parent68d0290aeb54cbe87344d09bcd43a705da6c5f31 (diff)
Add noatime option to not update atime on files in a filesystem (unless
ctime or mtime has changed). Useful for laptops and news servers.
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 da6afa338c9..a49fa90894d 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mntopts.h,v 1.2 1996/06/23 14:31:11 deraadt Exp $ */
+/* $OpenBSD: mntopts.h,v 1.3 1997/03/02 09:38:30 millert Exp $ */
/* $NetBSD: mntopts.h,v 1.3 1995/03/18 14:56:59 cgd Exp $ */
/*-
@@ -44,6 +44,7 @@ struct mntopt {
/* User-visible MNT_ flags. */
#define MOPT_ASYNC { "async", 0, MNT_ASYNC }
+#define MOPT_NOATIME { "atime", 1, MNT_NOATIME }
#define MOPT_NODEV { "dev", 1, MNT_NODEV }
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC }
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID }
@@ -75,6 +76,7 @@ struct mntopt {
MOPT_USERQUOTA, \
MOPT_GROUPQUOTA, \
MOPT_FSTAB_COMPAT, \
+ MOPT_NOATIME, \
MOPT_NODEV, \
MOPT_NOEXEC, \
MOPT_NOSUID, \