From jau@iki.fi  Wed Feb 25 04:35:26 1998
Received: from jau.thunderbolt.fi (jau@jukkonen.dial.tele.fi [194.89.253.78])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA03409
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Feb 1998 04:35:00 -0800 (PST)
          (envelope-from jau@iki.fi)
Received: (from jau@localhost)
	by jukkonen.dial.tele.fi (8.8.5/8.8.5/JAU-2.2) id HAA22501;
	Tue, 24 Feb 1998 07:15:54 +0200 (EET)
Message-Id: <199802240515.HAA22501@jukkonen.dial.tele.fi>
Date: Tue, 24 Feb 1998 07:15:54 +0200 (EET)
From: "Jukka A. Ukkonen" <jau@iki.fi>
Reply-To: jau@iki.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: mount -p did not report MNT_NOATIME flag...
X-Send-Pr-Version: 3.2

>Number:         5843
>Category:       bin
>Synopsis:       `mount -p' did not report the MNT_NOATIME flag
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 04:40:01 PST 1998
>Closed-Date:    Wed Feb 25 21:09:24 PST 1998
>Last-Modified:  Wed Feb 25 21:11:55 PST 1998
>Originator:     Jukka A. Ukkonen
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Private person
>Environment:

	FreeBSD-2.2.1 

>Description:

	There was an inconvenience with the mount command that it did
	not correctly report the `noatime' flag when invoked parameter -p.

>How-To-Repeat:

	Set the `noatime' flag for a mount point and then try to find it
	in the option list generated by command `mount -p'.

>Fix:
	
	Here is a patch to add also noatime to the output when needed.


--- mount.c.old	Mon Feb 23 01:07:44 1998
+++ mount.c	Mon Feb 23 01:09:14 1998
@@ -589,6 +589,9 @@
     if (ent->f_flags & MNT_ASYNC)
 	printf (",async");
 
+    if (ent->f_flags & MNT_NOATIME)
+	printf (",noatime");
+
     if (fst = getfsspec (ent->f_mntfromname))
 	printf ("\t%u %u\n", fst->fs_freq, fst->fs_passno);
     else if (fst = getfsfile (ent->f_mntonname))

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Wed Feb 25 21:09:24 PST 1998 
State-Changed-Why:  
Suggested patch (which also happens to be in -current) applied.  Thanks! 


Responsible-Changed-From-To: freebsd-bugs->steve 
Responsible-Changed-By: steve 
Responsible-Changed-When: Wed Feb 25 21:09:24 PST 1998 
Responsible-Changed-Why:  
>Unformatted:
