Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin Add MOPT_{REL, NO}ATIME as supported by the underlying f...



details:   https://anonhg.NetBSD.org/src/rev/c7d744508c08
branches:  trunk
changeset: 813845:c7d744508c08
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 21 22:51:29 2016 +0000

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

diffstat:

 sbin/mount_ext2fs/mount_ext2fs.c |  6 ++++--
 sbin/mount_lfs/mount_lfs.c       |  5 +++--
 sbin/mount_nilfs/mount_nilfs.c   |  5 +++--
 sbin/mount_ptyfs/mount_ptyfs.c   |  6 ++++--
 sbin/mount_tmpfs/mount_tmpfs.c   |  6 ++++--
 sbin/mount_udf/mount_udf.c       |  5 +++--
 6 files changed, 21 insertions(+), 12 deletions(-)

diffs (160 lines):

diff -r b23cb356469e -r c7d744508c08 sbin/mount_ext2fs/mount_ext2fs.c
--- a/sbin/mount_ext2fs/mount_ext2fs.c  Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_ext2fs/mount_ext2fs.c  Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
 #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 @@
        MOPT_FORCE,
        MOPT_GETARGS,
        MOPT_NODEVMTIME,
+       MOPT_NOATIME,
+       MOPT_RELATIME,
        MOPT_NULL,
 };
 
diff -r b23cb356469e -r c7d744508c08 sbin/mount_lfs/mount_lfs.c
--- a/sbin/mount_lfs/mount_lfs.c        Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_lfs/mount_lfs.c        Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
 #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 @@
        MOPT_UPDATE,
        MOPT_GETARGS,
        MOPT_NOATIME,
+       MOPT_RELATIME,
        MOPT_NULL,
 };
 
diff -r b23cb356469e -r c7d744508c08 sbin/mount_nilfs/mount_nilfs.c
--- a/sbin/mount_nilfs/mount_nilfs.c    Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_nilfs/mount_nilfs.c    Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
        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,
diff -r b23cb356469e -r c7d744508c08 sbin/mount_ptyfs/mount_ptyfs.c
--- a/sbin/mount_ptyfs/mount_ptyfs.c    Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_ptyfs/mount_ptyfs.c    Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
 #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 @@
 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 */
diff -r b23cb356469e -r c7d744508c08 sbin/mount_tmpfs/mount_tmpfs.c
--- a/sbin/mount_tmpfs/mount_tmpfs.c    Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_tmpfs/mount_tmpfs.c    Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
        MOPT_UPDATE,
        MOPT_STDOPTS,
        MOPT_GETARGS,
+       MOPT_NOATIME,
+       MOPT_RELATIME,
        MOPT_NULL,
 };
 
diff -r b23cb356469e -r c7d744508c08 sbin/mount_udf/mount_udf.c
--- a/sbin/mount_udf/mount_udf.c        Sun Feb 21 22:45:25 2016 +0000
+++ b/sbin/mount_udf/mount_udf.c        Sun Feb 21 22:51:29 2016 +0000
@@ -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 @@
        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,



Home | Main Index | Thread Index | Old Index