From 6330d4c50b201f093974b6b5c777f2bf4360cab5 Mon Sep 17 00:00:00 2001 From: Constantine Sapuntzakis Date: Sun, 25 Feb 2001 05:33:09 +0000 Subject: Update pstat to reflect vnode changes --- usr.sbin/pstat/pstat.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index df76c6a42c1..3cf6457a415 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.24 2000/06/16 19:03:48 assar Exp $ */ +/* $OpenBSD: pstat.c,v 1.25 2001/02/25 05:33:08 csapuntz Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -44,12 +44,13 @@ static char copyright[] = #if 0 from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94"; #else -static char *rcsid = "$OpenBSD: pstat.c,v 1.24 2000/06/16 19:03:48 assar Exp $"; +static char *rcsid = "$OpenBSD: pstat.c,v 1.25 2001/02/25 05:33:08 csapuntz Exp $"; #endif #endif /* not lint */ #include #include +#include #include #include #include @@ -340,17 +341,15 @@ vnode_print(avnode, vp) *fp++ = 'L'; if (flag & VXWANT) *fp++ = 'W'; - if (flag & VBWAIT) + if (vp->v_bioflag & VBIOWAIT) *fp++ = 'B'; if (flag & VALIASED) *fp++ = 'A'; - if (flag & VDIROP) - *fp++ = 'D'; - if (flag & VONFREELIST) + if (vp->v_bioflag & VBIOONFREELIST) *fp++ = 'F'; if (flag & VLOCKSWORK) *fp++ = 'l'; - if (flag & VONSYNCLIST) + if (vp->v_bioflag & VBIOONSYNCLIST) *fp++ = 's'; if (flag == 0) *fp++ = '-'; -- cgit v1.2.3