summaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-08-05 20:49:00 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-08-05 20:49:00 +0000
commit84e0d42775060101744111a75a5ed2090a4f2df9 (patch)
treef78c0e7133927822e8d05422782693bf0ccfaed1 /sbin/mount/mount.c
parentfc303ede4c1e119db3d3579c71d5c79c02c595cd (diff)
print info about procfs now that it's there to look at
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index fe3719e7802..3dc2694469f 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.c,v 1.32 2003/07/29 18:38:36 deraadt Exp $ */
+/* $OpenBSD: mount.c,v 1.33 2003/08/05 20:48:59 tedu Exp $ */
/* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: mount.c,v 1.32 2003/07/29 18:38:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mount.c,v 1.33 2003/08/05 20:48:59 tedu Exp $";
#endif
#endif /* not lint */
@@ -581,6 +581,13 @@ prmount(struct statfs *sf)
(void)printf("%s%s", !f++ ? " (" : ", ", "gens");
if (iso_args->flags & ISOFSMNT_EXTATT)
(void)printf("%s%s", !f++ ? " (" : ", ", "extatt");
+ } else if (strcmp(sf->f_fstypename, MOUNT_PROCFS) == 0) {
+ struct procfs_args *procfs_args = &sf->mount_info.procfs_args;
+
+ if (verbose)
+ (void)printf("version %d", procfs_args->version);
+ if (procfs_args->flags & PROCFSMNT_LINUXCOMPAT)
+ (void)printf("%s%s", !f++ ? " (" : ", ", "linux");
}
(void)printf(f ? ")\n" : "\n");
}