Module Name:    src
Committed By:   christos
Date:           Sun Feb 21 22:51:30 UTC 2016

Modified Files:
        src/sbin/mount_ext2fs: mount_ext2fs.c
        src/sbin/mount_lfs: mount_lfs.c
        src/sbin/mount_nilfs: mount_nilfs.c
        src/sbin/mount_ptyfs: mount_ptyfs.c
        src/sbin/mount_tmpfs: mount_tmpfs.c
        src/sbin/mount_udf: mount_udf.c

Log Message:
Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sbin/mount_ext2fs/mount_ext2fs.c
cvs rdiff -u -r1.38 -r1.39 src/sbin/mount_lfs/mount_lfs.c
cvs rdiff -u -r1.2 -r1.3 src/sbin/mount_nilfs/mount_nilfs.c
cvs rdiff -u -r1.15 -r1.16 src/sbin/mount_ptyfs/mount_ptyfs.c
cvs rdiff -u -r1.28 -r1.29 src/sbin/mount_tmpfs/mount_tmpfs.c
cvs rdiff -u -r1.13 -r1.14 src/sbin/mount_udf/mount_udf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/mount_ext2fs/mount_ext2fs.c
diff -u src/sbin/mount_ext2fs/mount_ext2fs.c:1.22 src/sbin/mount_ext2fs/mount_ext2fs.c:1.23
--- src/sbin/mount_ext2fs/mount_ext2fs.c:1.22	Mon Aug 29 10:35:00 2011
+++ src/sbin/mount_ext2fs/mount_ext2fs.c	Sun Feb 21 17:51:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_ext2fs.c,v 1.22 2011/08/29 14:35:00 joerg Exp $	*/
+/*	$NetBSD: mount_ext2fs.c,v 1.23 2016/02/21 22:51:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 19
 #if 0
 static char sccsid[] = "@(#)mount_ufs.c	8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_ext2fs.c,v 1.22 2011/08/29 14:35:00 joerg Exp $");
+__RCSID("$NetBSD: mount_ext2fs.c,v 1.23 2016/02/21 22:51:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -71,6 +71,8 @@ static const struct mntopt mopts[] = {
 	MOPT_FORCE,
 	MOPT_GETARGS,
 	MOPT_NODEVMTIME,
+	MOPT_NOATIME,
+	MOPT_RELATIME,
 	MOPT_NULL,
 };
 

Index: src/sbin/mount_lfs/mount_lfs.c
diff -u src/sbin/mount_lfs/mount_lfs.c:1.38 src/sbin/mount_lfs/mount_lfs.c:1.39
--- src/sbin/mount_lfs/mount_lfs.c:1.38	Sun Aug  2 14:11:57 2015
+++ src/sbin/mount_lfs/mount_lfs.c	Sun Feb 21 17:51:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_lfs.c,v 1.38 2015/08/02 18:11:57 dholland Exp $	*/
+/*	$NetBSD: mount_lfs.c,v 1.39 2016/02/21 22:51:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 19
 #if 0
 static char sccsid[] = "@(#)mount_lfs.c	8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_lfs.c,v 1.38 2015/08/02 18:11:57 dholland Exp $");
+__RCSID("$NetBSD: mount_lfs.c,v 1.39 2016/02/21 22:51:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -68,6 +68,7 @@ static const struct mntopt mopts[] = {
 	MOPT_UPDATE,
 	MOPT_GETARGS,
 	MOPT_NOATIME,
+	MOPT_RELATIME,
 	MOPT_NULL,
 };
 

Index: src/sbin/mount_nilfs/mount_nilfs.c
diff -u src/sbin/mount_nilfs/mount_nilfs.c:1.2 src/sbin/mount_nilfs/mount_nilfs.c:1.3
--- src/sbin/mount_nilfs/mount_nilfs.c:1.2	Fri Oct 18 21:09:59 2013
+++ src/sbin/mount_nilfs/mount_nilfs.c	Sun Feb 21 17:51:29 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_nilfs.c,v 1.2 2013/10/19 01:09:59 christos Exp $ */
+/* $NetBSD: mount_nilfs.c,v 1.3 2016/02/21 22:51:29 christos Exp $ */
 
 /*
  * Copyright (c) 2008, 2009 Reinoud Zandijk
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mount_nilfs.c,v 1.2 2013/10/19 01:09:59 christos Exp $");
+__RCSID("$NetBSD: mount_nilfs.c,v 1.3 2016/02/21 22:51:29 christos Exp $");
 #endif /* not lint */
 
 
@@ -69,6 +69,7 @@ static const struct mntopt mopts[] = {
 	MOPT_STDOPTS,		/* `normal' options		*/
 	MOPT_ASYNC,		/* default			*/
 	MOPT_NOATIME,		/* dont update access times	*/
+	MOPT_RELATIME,		/* update access times on change*/
 	MOPT_UPDATE,		/* not yet supported		*/
 	MOPT_GETARGS,		/* printing			*/
 	MOPT_NULL,

Index: src/sbin/mount_ptyfs/mount_ptyfs.c
diff -u src/sbin/mount_ptyfs/mount_ptyfs.c:1.15 src/sbin/mount_ptyfs/mount_ptyfs.c:1.16
--- src/sbin/mount_ptyfs/mount_ptyfs.c:1.15	Thu Sep 20 14:56:05 2012
+++ src/sbin/mount_ptyfs/mount_ptyfs.c	Sun Feb 21 17:51:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_ptyfs.c,v 1.15 2012/09/20 18:56:05 christos Exp $	*/
+/*	$NetBSD: mount_ptyfs.c,v 1.16 2016/02/21 22:51:29 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993, 1994
@@ -77,7 +77,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 19
 #if 0
 static char sccsid[] = "@(#)mount_ptyfs.c	8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: mount_ptyfs.c,v 1.15 2012/09/20 18:56:05 christos Exp $");
+__RCSID("$NetBSD: mount_ptyfs.c,v 1.16 2016/02/21 22:51:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -105,6 +105,8 @@ __RCSID("$NetBSD: mount_ptyfs.c,v 1.15 2
 static const struct mntopt mopts[] = {
 	MOPT_STDOPTS,
 	MOPT_GETARGS,
+	MOPT_NOATIME,
+	MOPT_RELATIME,
 	{ "group", 0, ALTF_GROUP, 1 },
 	{ "mode", 0, ALTF_MODE, 1 },
 	{ "chroot", 0, ALTF_CHROOT, 1 },	/* compat */

Index: src/sbin/mount_tmpfs/mount_tmpfs.c
diff -u src/sbin/mount_tmpfs/mount_tmpfs.c:1.28 src/sbin/mount_tmpfs/mount_tmpfs.c:1.29
--- src/sbin/mount_tmpfs/mount_tmpfs.c:1.28	Tue Apr 29 21:33:11 2014
+++ src/sbin/mount_tmpfs/mount_tmpfs.c	Sun Feb 21 17:51:30 2016
@@ -1,5 +1,5 @@
 
-/*	$NetBSD: mount_tmpfs.c,v 1.28 2014/04/30 01:33:11 christos Exp $	*/
+/*	$NetBSD: mount_tmpfs.c,v 1.29 2016/02/21 22:51:30 christos Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mount_tmpfs.c,v 1.28 2014/04/30 01:33:11 christos Exp $");
+__RCSID("$NetBSD: mount_tmpfs.c,v 1.29 2016/02/21 22:51:30 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -63,6 +63,8 @@ static const struct mntopt mopts[] = {
 	MOPT_UPDATE,
 	MOPT_STDOPTS,
 	MOPT_GETARGS,
+	MOPT_NOATIME,
+	MOPT_RELATIME,
 	MOPT_NULL,
 };
 

Index: src/sbin/mount_udf/mount_udf.c
diff -u src/sbin/mount_udf/mount_udf.c:1.13 src/sbin/mount_udf/mount_udf.c:1.14
--- src/sbin/mount_udf/mount_udf.c:1.13	Sun Feb  8 14:28:49 2009
+++ src/sbin/mount_udf/mount_udf.c	Sun Feb 21 17:51:30 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_udf.c,v 1.13 2009/02/08 19:28:49 reinoud Exp $ */
+/* $NetBSD: mount_udf.c,v 1.14 2016/02/21 22:51:30 christos Exp $ */
 
 /*
  * Copyright (c) 2006 Reinoud Zandijk
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mount_udf.c,v 1.13 2009/02/08 19:28:49 reinoud Exp $");
+__RCSID("$NetBSD: mount_udf.c,v 1.14 2016/02/21 22:51:30 christos Exp $");
 #endif /* not lint */
 
 
@@ -69,6 +69,7 @@ static const struct mntopt mopts[] = {
 	MOPT_STDOPTS,		/* `normal' options		*/
 	MOPT_ASYNC,		/* default			*/
 	MOPT_NOATIME,		/* dont update access times	*/
+	MOPT_RELATIME,		/* update access times on change*/
 	MOPT_UPDATE,		/* not yet supported		*/
 	MOPT_GETARGS,		/* printing			*/
 	MOPT_NULL,

Reply via email to