From 15b3a40e8a46ac8e494691086dfe7a4b22632019 Mon Sep 17 00:00:00 2001 From: enami Date: Fri, 30 Apr 2004 00:48:07 +0000 Subject: [PATCH] Print fsid on verbose printing. It is useful when debugging nfs. --- sbin/mount/mount.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 5af61af419a1..3ca353d4b722 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $NetBSD: mount.c,v 1.70 2004/04/22 10:17:00 hannken Exp $ */ +/* $NetBSD: mount.c,v 1.71 2004/04/30 00:48:07 enami Exp $ */ /* * Copyright (c) 1980, 1989, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; #else -__RCSID("$NetBSD: mount.c,v 1.70 2004/04/22 10:17:00 hannken Exp $"); +__RCSID("$NetBSD: mount.c,v 1.71 2004/04/30 00:48:07 enami Exp $"); #endif #endif /* not lint */ @@ -538,6 +538,11 @@ prmount(sfp) else (void)printf("%d", sfp->f_owner); } + if (verbose) + (void)printf("%sfsid: 0x%x/0x%x", + !f++ ? " (" /* ) */: ", ", + sfp->f_fsidx.__fsid_val[0], sfp->f_fsidx.__fsid_val[1]); + if (verbose) { (void)printf("%s", !f++ ? " (" : ", "); (void)printf("reads: sync %" PRIu64 " async %" PRIu64 "",