Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pstat update list of ufs inode, nfs inode flags and...



details:   https://anonhg.NetBSD.org/src/rev/d660d0e83396
branches:  trunk
changeset: 487749:d660d0e83396
user:      assar <assar%NetBSD.org@localhost>
date:      Mon Jun 12 13:30:03 2000 +0000

description:
update list of ufs inode, nfs inode flags and tty disciplines to
reality.  also sort them in the obvious order.

diffstat:

 usr.sbin/pstat/pstat.8 |  50 ++++++++++++++++++++++++++++++--------------------
 usr.sbin/pstat/pstat.c |  27 +++++++++++++++++++++------
 2 files changed, 51 insertions(+), 26 deletions(-)

diffs (171 lines):

diff -r f7b2d8ce2662 -r d660d0e83396 usr.sbin/pstat/pstat.8
--- a/usr.sbin/pstat/pstat.8    Mon Jun 12 12:41:40 2000 +0000
+++ b/usr.sbin/pstat/pstat.8    Mon Jun 12 13:30:03 2000 +0000
@@ -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 @@
 .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 @@
 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 B
+VBWAIT waiting for output to complete.
 .It A
 VALIASED vnode has an alias.
-.It B
-VBWAIT waiting for output to complete.
 .It D
 VDIROP lfs vnode involved in directory op.
 .It Y
@@ -284,28 +288,28 @@
 .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 @@
 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
diff -r f7b2d8ce2662 -r d660d0e83396 usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c    Mon Jun 12 12:41:40 2000 +0000
+++ b/usr.sbin/pstat/pstat.c    Mon Jun 12 13:30:03 2000 +0000
@@ -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 @@
 #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 @@
         */
 
        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 @@
                *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 @@
        case STRIPDISC:
                (void)printf("strip\n");
                break;
+       case HDLCDISC:
+               (void)printf("hdlc\n");
+               break;
        default:
                (void)printf("%d\n", tp->t_line);
                break;



Home | Main Index | Thread Index | Old Index