From owner-freebsd-bugs Wed Feb 25 04:40:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03839 for freebsd-bugs-outgoing; Wed, 25 Feb 1998 04:40:02 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03831; Wed, 25 Feb 1998 04:40:01 -0800 (PST) (envelope-from gnats) 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 ; 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" Reply-To: jau@iki.fi To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5843: mount -p did not report MNT_NOATIME flag... Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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