Date: Tue, 24 Feb 1998 07:15:54 +0200 (EET) From: "Jukka A. Ukkonen" <jau@iki.fi> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5843: mount -p did not report MNT_NOATIME flag... Message-ID: <199802240515.HAA22501@jukkonen.dial.tele.fi>
index | next in thread | raw e-mail
>Number: 5843
>Category: bin
>Synopsis: `mount -p' did not report the MNT_NOATIME flag
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 25 04:40:01 PST 1998
>Last-Modified:
>Originator: Jukka A. Ukkonen
>Organization:
Private person
>Release: FreeBSD 2.2.1-RELEASE i386
>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))
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802240515.HAA22501>
