[470] in Athena Bugs
pstat -i (VS6.0B, but perhaps others)
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Mon Jul 4 06:29:20 1988
Date: Mon, 4 Jul 88 06:28:40 EDT
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
To: vs_testers@ATHENA.MIT.EDU, bugs@ATHENA.MIT.EDU
/etc/pstat -i prints a completely bogus (and undocumented!) header
string:
ILOC IFLAG IDEVICE INO MODE NLK UID SIZE/DEV VFLAG CNT SHC EXC TYPE
800a2b30 S 2 19, 6 1 0 642 81c0 13382 2418
Many of the fields mentioned are not described in man 8 pstat. The
correct string (as per the documentation) also lines up with the data:
LOC FLAGS CNT DEVICE RDC WRC INO MODE NLK UID SIZE/DEV
800a2b30 S 2 19, 6 1 0 642 81c0 13382 2418
/source/vax/etc/pstat/pstat.c(lines 282-286) has the following:
#ifdef VFS
printf(" ILOC IFLAG IDEVICE INO MODE NLK UID SIZE/DEV VFLAG CNT SHC EXC TYPE\n");
#else
printf(" LOC FLAGS CNT DEVICE RDC WRC INO MODE NLK UID SIZE/DEV\n");
#endif VFS
Given that the code that follows merely prints the same data whether
or not VFS is defined (though it takes them from different structures)
why the immense change in header? It might be misplaced from something
else, it certainly doesn't belong here.
Fix: Delete lines 282-284 and 286 from /source/vax/etc/pstat/pstat.c.
_Mark_