update list of ufs inode, nfs inode flags and tty disciplines to

reality.  also sort them in the obvious order.
This commit is contained in:
assar 2000-06-12 13:30:03 +00:00
parent de480e09b1
commit 7655c3a8f9
2 changed files with 51 additions and 26 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pstat.8,v 1.23 1999/12/08 22:01:53 msaitoh Exp $
.\" $NetBSD: pstat.8,v 1.24 2000/06/12 13:30:03 assar Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -205,7 +205,9 @@ for PPPDISC (see
.Xr ppp 4 ) ,
.Ql strip
for STRIPDISC (see
.Xr strip 4 ) .
.Xr strip 4 ) ,
.Ql hdlc
for HDLCDISC.
.El
.It Fl v
Print the active vnodes. Each group of vnodes corresponding
@ -250,16 +252,18 @@ A list of letters representing vnode flags:
VROOT root of its file system.
.It T
VTEXT pure text prototype.
.It S
VSYSTEM vnode being used by kernel.
.It I
VISTTY vnode is a tty.
.It L
VXLOCK locked to change underlying type.
.It W
VXWANT process is waiting for vnode.
.It S
VSYSTEM vnode being used by kernel.
.It A
VALIASED vnode has an alias.
.It B
VBWAIT waiting for output to complete.
.It A
VALIASED vnode has an alias.
.It D
VDIROP lfs vnode involved in directory op.
.It Y
@ -284,28 +288,28 @@ Miscellaneous filesystem specific state variables encoded thus:
.Bl -tag -width indent
.It "For ffs or ext2fs:"
.Bl -tag -width indent -compact
.It L
locked
.It A
access time must be corrected
.It C
changed time must be corrected
.It U
update time
.Pq Xr fs 5
must be corrected
.It A
access time must be corrected
.It W
wanted by another process (L flag is on)
.It C
changed time must be corrected
.It M
contains modifications
.It a
has been accessed
.It R
has a rename in progress
.It S
shared lock applied
.It E
exclusive lock applied
.It Z
someone waiting for a lock
.It M
contains modifications
.It R
has a rename in progress
.It c
is being cleaned (LFS)
.It a
directory operation in progress (LFS)
.El
.It "For nfs:"
.Bl -tag -width indent -compact
@ -323,6 +327,12 @@ non-cacheable lease (nqnfs)
write lease (nqnfs)
.It G
lease was evicted (nqnfs)
.It A
special file accessed
.It U
special file updated
.It C
special file times changed
.El
.El
.It SIZ/RDEV

View File

@ -1,4 +1,4 @@
/* $NetBSD: pstat.c,v 1.51 2000/04/14 06:26:54 simonb Exp $ */
/* $NetBSD: pstat.c,v 1.52 2000/06/12 13:30:04 assar 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.51 2000/04/14 06:26:54 simonb Exp $");
__RCSID("$NetBSD: pstat.c,v 1.52 2000/06/12 13:30:04 assar Exp $");
#endif
#endif /* not lint */
@ -427,20 +427,26 @@ ufs_getflags(vp, ip, flags)
*/
flag = ip->i_flag;
if (flag & IN_RENAME)
*flags++ = 'R';
if (flag & IN_UPDATE)
*flags++ = 'U';
if (flag & IN_ACCESS)
*flags++ = 'A';
if (flag & IN_CHANGE)
*flags++ = 'C';
if (flag & IN_UPDATE)
*flags++ = 'U';
if (flag & IN_MODIFIED)
*flags++ = 'M';
if (flag & IN_ACCESSED)
*flags++ = 'a';
if (flag & IN_RENAME)
*flags++ = 'R';
if (flag & IN_SHLOCK)
*flags++ = 'S';
if (flag & IN_EXLOCK)
*flags++ = 'E';
if (flag & IN_CLEANING)
*flags++ = 'c';
if (flag & IN_ADIROP)
*flags++ = 'a';
if (flag == 0)
*flags++ = '-';
*flags = '\0';
@ -538,6 +544,12 @@ nfs_print(vp)
*flags++ = 'O';
if (flag & NQNFSEVICTED)
*flags++ = 'G';
if (flag & NACC)
*flags++ = 'A';
if (flag & NUPD)
*flags++ = 'U';
if (flag & NCHG)
*flags++ = 'C';
if (flag == 0)
*flags++ = '-';
*flags = '\0';
@ -788,6 +800,9 @@ ttyprt(tp)
case STRIPDISC:
(void)printf("strip\n");
break;
case HDLCDISC:
(void)printf("hdlc\n");
break;
default:
(void)printf("%d\n", tp->t_line);
break;