Commit Graph

92 Commits

Author SHA1 Message Date
rpaulo 0dc4f15121 Don't print swap information when reading from kernel dumps. Fixes PR
13418 by Andrew Doran <ad@netbsd.org>.
2005-09-11 16:09:51 +00:00
rpaulo 3f51653817 de-__P() and use ANSI function declarations. 2005-09-02 21:26:47 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
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
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 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
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
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 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
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
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
mrg 7ca673b24b add a (long) cast to previous fix like the other arguments. 1999-10-10 00:15:27 +00:00
soren bcc362ca92 Account for widening of the v_usecount member in struct vnode. 1999-10-01 23:11:24 +00:00
fvdl bec4549303 Update for mount flag change. 1999-07-04 22:09:30 +00:00
mrg cdac266703 discard setgid. 1999-01-31 10:12:33 +00:00
tv bf6bf05ae1 Fix hannken's fix: The correct way to keep pstat.c from looking for any
"opt_*.h" files is to set a flag that tells the header files not to look for
anything in the kernel compile directory, i.e. _LKM.

Just rearranging includes doesn't work because it'll just break again,
eventually, as more stuff is defopted.
1998-06-26 19:52:29 +00:00