NetBSD Problem Report #436
From gnats Fri Aug 26 14:08:41 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id OAA00933 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 26 Aug 1994 14:06:55 -0700
Message-Id: <199408262106.XAA12019@forte>
Date: Fri, 26 Aug 1994 23:06:10 +0200
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: mount(8) doesn't print types of mounted filesystems
X-Send-Pr-Version: 3.2
>Number: 436
>Category: bin
>Synopsis: mount(8) doesn't print types of mounted filesystems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Aug 26 14:20:03 +0000 1994
>Closed-Date: Mon Aug 29 02:38:06 +0000 1994
>Last-Modified:
>Originator: Thomas Eberhardt
>Release:
>Organization:
CeVis, University of Bremen, Germany
>Environment:
System: NetBSD ed209 1.0_BETA NetBSD 1.0_BETA (ED209) #0: Sat Aug 20 03:10:19 MET DST 1994 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386
Machine: i386
>Description:
I think it is useful to know of what type the mounted filesystems are.
Below is a patch for mount(8) that provides this.
>How-To-Repeat:
>Fix:
*** sbin/mount/mount.c- Thu Jun 9 12:10:36 1994
--- sbin/mount/mount.c Fri Aug 26 22:57:35 1994
***************
*** 69,75 ****
void mangle __P((char *, int *, const char **));
int mountfs __P((const char *, const char *, const char *,
int, const char *, const char *));
! void prmount __P((const char *, const char *, int));
void usage __P((void));
/* From mount_ufs.c. */
--- 69,75 ----
void mangle __P((char *, int *, const char **));
int mountfs __P((const char *, const char *, const char *,
int, const char *, const char *));
! void prmount __P((const char *, const char *, const char *, int));
void usage __P((void));
/* From mount_ufs.c. */
***************
*** 179,185 ****
if (badvfsname(mntbuf[i].f_fstypename, vfslist))
continue;
prmount(mntbuf[i].f_mntfromname,
! mntbuf[i].f_mntonname, mntbuf[i].f_flags);
}
}
exit(rval);
--- 179,186 ----
if (badvfsname(mntbuf[i].f_fstypename, vfslist))
continue;
prmount(mntbuf[i].f_mntfromname,
! mntbuf[i].f_mntonname,
! mntbuf[i].f_fstypename, mntbuf[i].f_flags);
}
}
exit(rval);
***************
*** 378,384 ****
warn("statfs %s", name);
return (1);
}
! prmount(sf.f_mntfromname, sf.f_mntonname, sf.f_flags);
}
break;
}
--- 379,386 ----
warn("statfs %s", name);
return (1);
}
! prmount(sf.f_mntfromname, sf.f_mntonname,
! sf.f_fstypename, sf.f_flags);
}
break;
}
***************
*** 387,400 ****
}
void
! prmount(spec, name, flags)
! const char *spec, *name;
int flags;
{
struct opt *o;
int f;
! (void)printf("%s on %s", spec, name);
flags &= MNT_VISFLAGMASK;
for (f = 0, o = optnames; flags && o->o_opt; o++)
--- 389,402 ----
}
void
! prmount(spec, name, type, flags)
! const char *spec, *name, *type;
int flags;
{
struct opt *o;
int f;
! (void)printf("%s on %s type %s", spec, name, type);
flags &= MNT_VISFLAGMASK;
for (f = 0, o = optnames; flags && o->o_opt; o++)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sun Aug 28 19:38:06 PDT 1994
State-Changed-Why:
Done, though a bit differently.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.