root@uokmet.UUCP (04/01/86)
>Here's some surprising output I got on a 4.1bsd system running on an 11/750 >(where, for the sake of brevity, I've "mv"ed some files from the "/dev" >directory to a subdirectory named "/dev/wrong"): > > % /bin/ls -l /dev/wrong > total 888248 > c--------- 1 root 4, 16 Jan 9 10:11 rhp2a > c--------- 1 root 4, 17 Jan 9 10:11 rhp2b > cr-------- 1 root 4, 18 Jan 9 10:11 rhp2c > % /bin/du /dev/wrong > 888249 /dev/wrong > > >I'd appreciate knowing if anyone else out there gets wild output from > /bin/du /dev >--especially if you get them on 4.2 or 4.3 systems. I'd also appreciate any >insights as to where the "right" place (fsck? the kernel? ls and du?) to fix >the problem is. Try looking at the code for ls.c and du.c. I seem to remember a similar problem with 2.9, at least in ls.c. Look for a long integer being printed out in short integer format. That fixed "ls". I've never had a problem with "du", but I would think the error is along the same lines. Kevin W. Thomas Univ. of Oklahoma Norman, OK UUCP: ihnp4!uokvax!uokmet!kwthomas