Commit Graph

116 Commits

Author SHA1 Message Date
christos
68a1fbb811 catch up with kernel's constification. 2005-05-30 07:24:31 +00:00
christos
b30695cd1d Use the array of dtype names instead of hand-rolling our own. 2004-12-18 08:43:35 +00:00
snj
edb93b858a Bump date for last, new sentence, new line, and kill an extra space. 2004-12-09 06:57:19 +00:00
matt
d337725eb3 When dumping the file entry, print the usecount and iflags too. 2004-12-09 01:14:59 +00:00
jdc
d853cbbaf4 Make pstat -f work on sparc by adjusting the offset of the buffer passed
to sysctl in getfiles().

XXX: Possibly the correct fix is to make sysctl() not return an array which
contains structs with different alignment constraints.
2004-02-22 12:30:11 +00:00
mrg
61b5ab403f bump date for previous 2003-12-21 02:52:02 +00:00
mrg
9bf440d20b support "-g" and "-m" as well as "-k" and "-h". swapctl & swaplist code
from Martin Weber, adapted for pstat by myself.
2003-12-20 13:31:42 +00:00
mrg
5fd013c40d add a "-h" (humanize_number(3)) option to swapctl(8) and pstat(8), from
Martin Weber in PR#23805.

ps: now we only need someone to do ls(1) :-)
2003-12-20 11:22:25 +00:00
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
fvdl
42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
mrg
3b06b649fe revert previous 2003-02-11 00:45:02 +00:00
mrg
dcd2b71575 no need for "pstat -T" to copyout() the entire vnode list , which can
take a Long Time on systems with large numbers of vnodes.
2003-02-10 23:58:27 +00:00
christos
acc1cc5b41 undo mallocvar.h change! 2003-02-02 02:25:50 +00:00
tron
083ed45586 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:05:54 +00:00
simonb
d7b879c6ec Grrr. So much for my ability to use grep(1) effectively. Pointed out
by Stephen Degler in private mail.
2003-01-20 07:12:12 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
christos
11e29bdcef don't use hand-rolled MNT_FLAGS 2002-12-11 22:19:58 +00:00
jdolecek
01188cb460 constify structs, print also pipes for -f 2002-11-06 09:32:26 +00:00
agc
e66e457180 <sys/map.h> is no more - don't try to include it. 2002-09-26 21:30:30 +00:00
lukem
17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
enami
878dd0cd17 For pstat -f and -t, make header align with actual data on LP64 system. 2002-02-24 02:02:59 +00:00
enami
c4f3ebe67c Make flag bit to character conversion table driven. 2002-02-23 01:06:41 +00:00
enami
ae68f729ab Don't use same character for different flags. 2002-02-22 11:25:37 +00:00
enami
dd20cf834b Use getprogname(). 2002-02-22 05:43:20 +00:00
enami
53ada2a18e Always free memroy allocated by loadvnodes(). 2002-02-22 05:21:01 +00:00
enami
c31a571ef9 Forgot to fix header for union/layer vnode. 2002-02-22 05:04:43 +00:00
enami
025015575f Borrow the macro PRWORD() from vmstat.c and use it. Also, calculate the
width of pointer using sizeof(void *) * 2 instead of using 8.
2002-02-22 04:58:39 +00:00
enami
6ac7c9d9d8 No need to use paren here. Actually, the usage was inconsistient through
this file.
2002-02-22 04:30:39 +00:00
enami
cbf417a013 - Fix indentation.
- Wrap long line.
- Kill unnecessary empty line.
2002-02-22 04:27:30 +00:00
enami
e0e7c0fbcb - Print number of pages in the vnode.
- Recognize VEXECMAP bit in vnode flags.
- Recognize IN_SPACECOUNTED in inode flags.
2002-02-21 10:58:00 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz
7ec6567148 Sort sections, use standard headers. 2002-02-02 01:35:30 +00:00
lukem
99147a7648 remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)
2001-10-26 05:56:06 +00:00
ad
e1036d7e68 Couple of nits. 2001-07-09 17:46:39 +00:00
ad
773c9cf920 errx() prints the newline for you. 2001-07-09 17:30:37 +00:00
mrg
7276c20511 don't #define _LKM to work around header lossage; it is no longer necessary. 2001-06-05 09:20:12 +00:00
wiz
7da30c83ac Change xref for vmstat(8) to vmstat(1).
Whitespace, punctuation and spelling fixes while I'm here.
2001-05-06 23:48:31 +00:00
enami
d80b31fd76 Don't rely on the struct e_vnode since it isn't a part of KERN_VNODE sysctl
interface and it actually breaks pstat -v on an architecture on which
compiler emits padding between the struct's members.
2001-02-11 03:01:05 +00:00
enami
693aff020e Protect statement macro with do { ... } while(0). 2001-02-11 02:44:27 +00:00
lukem
c2aa46e7c2 use %ll_ instead of the less standard %q_ 2001-01-05 03:27:26 +00:00
enami
2285fa8eab Print address of lower vnode of layered fs vnode. 2000-12-13 05:50:33 +00:00
enami
7ec21d4438 Use va.va_type instead of va.va_mode to determine if a nfs vnode is a
deivce node or not, since latter contains permission bits only.
2000-12-13 05:34:55 +00:00
tron
dd8effead0 Adapt to the new line discipline scheme. 2000-11-02 21:40:37 +00:00
is
d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
assar
7655c3a8f9 update list of ufs inode, nfs inode flags and tty disciplines to
reality.  also sort them in the obvious order.
2000-06-12 13:30:03 +00:00
simonb
fd4ede242b Don't declare 'extern opt*' getopt variables. 2000-04-14 06:26:52 +00:00
msaitoh
01dc593408 fix the table of the STATE field of "pstat -t" 1999-12-08 22:01:53 +00:00
enami
2ca792df74 - Sync mount options and vnode flags with reality.
- Use i_e2fs_rdev.
- Print per filesystem data only if an inode is associated to the vnode.
1999-11-18 08:34:38 +00:00
enami
041d1aa9b5 Cosmetic changes; fix indentation and usage of white spaces. 1999-11-18 08:27:39 +00:00
enami
c1fd241001 The field to print vnode tag isn't necessary so wide. 1999-11-18 03:08:38 +00:00