Subject: bin/3304: Mount option missing from mount command.
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 03/08/1997 12:25:25
>Number:         3304
>Category:       bin
>Synopsis:       Mount option missing from mount command.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar  8 03:35:02 1997
>Last-Modified:
>Originator:     Lennart Augustsson
>Organization:
Department of Computing Science, Chalmers University
>Release:        NetBSD-current 97-03-07
>Environment:
System: NetBSD calvin.cs.chalmers.se 1.2C NetBSD 1.2C (CALVIN) #112: Sat Mar 8 00:06:18 MET 1997 augustss@calvin.cs.chalmers.se:/usr/src/sys/arch/i386/compile/CALVIN i386


>Description:
	The mount option MNT_NOATIME that avoids updating the
	access time for files is not available from the mount command.
>How-To-Repeat:
	Just check the code and man page.
>Fix:
	Apply this patch:

*** sbin/mount/mount.c.old	Sat Mar  8 12:16:08 1997
--- sbin/mount/mount.c	Sat Mar  8 12:17:14 1997
***************
*** 99,104 ****
--- 99,105 ----
  	{ MNT_ROOTFS,		1,	"root file system" },
  	{ MNT_SYNCHRONOUS,	0,	"synchronous" },
  	{ MNT_UNION,		0,	"union" },
+ 	{ MNT_NOATIME,		0,	"noatime" },
  	{ NULL }
  };
  
*** sbin/mount/mount.8.old	Sat Mar  8 12:16:13 1997
--- sbin/mount/mount.8	Sat Mar  8 12:20:26 1997
***************
*** 128,133 ****
--- 128,136 ----
  .Fl f ;
  forces the revocation of write access when trying to downgrade
  a filesystem mount status from read-write to read-only.
+ .It noatime
+ Never update the access time field for files.  Only available for
+ the ``ffs'' file system.
  .It nodev
  Do not interpret character or block special devices on the file system.
  This option is useful for a server that has file systems containing
>Audit-Trail:
>Unformatted: