From: millert Date: Sun, 9 Mar 1997 19:27:59 +0000 (+0000) Subject: noatime changed to noaccesstime for consistency with BSD/OS. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2ac295b7839200876d056190a104d61785bd8771;p=openbsd noatime changed to noaccesstime for consistency with BSD/OS. --- diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h index a49fa90894d..73207de3122 100644 --- a/sbin/mount/mntopts.h +++ b/sbin/mount/mntopts.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mntopts.h,v 1.3 1997/03/02 09:38:30 millert Exp $ */ +/* $OpenBSD: mntopts.h,v 1.4 1997/03/09 19:27:59 millert Exp $ */ /* $NetBSD: mntopts.h,v 1.3 1995/03/18 14:56:59 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ struct mntopt { /* User-visible MNT_ flags. */ #define MOPT_ASYNC { "async", 0, MNT_ASYNC } -#define MOPT_NOATIME { "atime", 1, MNT_NOATIME } +#define MOPT_NOATIME { "accesstime", 1, MNT_NOATIME } #define MOPT_NODEV { "dev", 1, MNT_NODEV } #define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC } #define MOPT_NOSUID { "suid", 1, MNT_NOSUID } diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 10dba75851e..8a665e4ec1d 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.8,v 1.3 1997/03/02 09:38:25 millert Exp $ +.\" $OpenBSD: mount.8,v 1.4 1997/03/09 19:28:01 millert Exp $ .\" $NetBSD: mount.8,v 1.11 1995/07/12 06:23:21 cgd Exp $ .\" .\" Copyright (c) 1980, 1989, 1991, 1993 @@ -129,7 +129,7 @@ The same as .Fl f ; forces the revocation of write access when trying to downgrade a filesystem mount status from read-write to read-only. -.It noatime +.It noaccesstime Do not update atime on files in the system unless the mtime or ctime is being changed as well. This option is useful for laptops and news servers where one does diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 87ce9c4fbdf..0a33b45306b 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.c,v 1.14 1997/03/02 09:38:28 millert Exp $ */ +/* $OpenBSD: mount.c,v 1.15 1997/03/09 19:28:01 millert Exp $ */ /* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94"; #else -static char rcsid[] = "$OpenBSD: mount.c,v 1.14 1997/03/02 09:38:28 millert Exp $"; +static char rcsid[] = "$OpenBSD: mount.c,v 1.15 1997/03/09 19:28:01 millert Exp $"; #endif #endif /* not lint */ @@ -93,7 +93,7 @@ static struct opt { { MNT_EXPORTANON, 1, "anon uid mapping" }, { MNT_EXRDONLY, 1, "exported read-only" }, { MNT_LOCAL, 0, "local" }, - { MNT_NOATIME, 0, "noatime" }, + { MNT_NOATIME, 0, "noaccesstime" }, { MNT_NODEV, 0, "nodev" }, { MNT_NOEXEC, 0, "noexec" }, { MNT_NOSUID, 0, "nosuid" },