From 0728a53400ed12a3763635ff18f639a1692f10af Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 3 May 2008 04:13:12 +0000 Subject: [PATCH] Print the path even if we do not understand the filesystem type. Fix a switch/case compiler warning. --- usr.bin/fstat/fstat.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 83b7e0e40c..133fff7283 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1988, 1993 The Regents of the University of California. All rights reserved. * @(#)fstat.c 8.3 (Berkeley) 5/2/95 * $FreeBSD: src/usr.bin/fstat/fstat.c,v 1.21.2.7 2001/11/21 10:49:37 dwmalone Exp $ - * $DragonFly: src/usr.bin/fstat/fstat.c,v 1.25 2007/05/09 04:33:51 dillon Exp $ + * $DragonFly: src/usr.bin/fstat/fstat.c,v 1.26 2008/05/03 04:13:12 dillon Exp $ */ #define _KERNEL_STRUCTURES @@ -492,7 +492,7 @@ vtrans(struct vnode *vp, struct nchandle *ncr, int i, int flag) if (!isofs_filestat(&vn, &fst)) badtype = "error"; break; - + default: { static char unknown[10]; sprintf(unknown, "?(%x)", vn.v_tag); @@ -519,7 +519,10 @@ vtrans(struct vnode *vp, struct nchandle *ncr, int i, int flag) } PREFIX(i); if (badtype) { - (void)printf(" - - %10s -\n", badtype); + (void)printf(" %-*s %10s -\n", + wflg_mnt, + getmnton(vn.v_mount, &vn.v_namecache, ncr), + badtype); return; } if (nflg) @@ -620,6 +623,8 @@ nfs_filestat(struct vnode *vp, struct filestat *fsp) case VFIFO: mode |= S_IFIFO; break; + case VDATABASE: + break; case VNON: case VBAD: return 0; -- 2.41.0