The previous changes were not sufficient, we need more kvm reads.
This commit is contained in:
parent
332129fdf1
commit
41e3b9d2f4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pstat.c,v 1.37 1997/10/20 17:32:51 drochner Exp $ */
|
||||
/* $NetBSD: pstat.c,v 1.38 1997/10/20 18:12:56 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1991, 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: pstat.c,v 1.37 1997/10/20 17:32:51 drochner Exp $");
|
||||
__RCSID("$NetBSD: pstat.c,v 1.38 1997/10/20 18:12:56 drochner Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -500,6 +500,7 @@ nfs_print(vp)
|
|||
struct nfsnode nfsnode, *np = &nfsnode;
|
||||
char flagbuf[16], *flags = flagbuf;
|
||||
int flag;
|
||||
struct vattr va;
|
||||
char *name;
|
||||
mode_t type;
|
||||
|
||||
|
@ -523,13 +524,13 @@ nfs_print(vp)
|
|||
*flags++ = '-';
|
||||
*flags = '\0';
|
||||
|
||||
#define VT np->n_vattr
|
||||
(void)printf(" %6ld %5s", (long)VT->va_fileid, flagbuf);
|
||||
type = VT->va_mode & S_IFMT;
|
||||
if (S_ISCHR(VT->va_mode) || S_ISBLK(VT->va_mode))
|
||||
if (usenumflag || ((name = devname(VT->va_rdev, type)) == NULL))
|
||||
KGETRET(np->n_vattr, &va, sizeof(va), "vnode attr");
|
||||
(void)printf(" %6ld %5s", (long)va.va_fileid, flagbuf);
|
||||
type = va.va_mode & S_IFMT;
|
||||
if (S_ISCHR(va.va_mode) || S_ISBLK(va.va_mode))
|
||||
if (usenumflag || ((name = devname(va.va_rdev, type)) == NULL))
|
||||
(void)printf(" %2d,%-2d",
|
||||
major(VT->va_rdev), minor(VT->va_rdev));
|
||||
major(va.va_rdev), minor(va.va_rdev));
|
||||
else
|
||||
(void)printf(" %7s", name);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue