Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site uokmet.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!uiucdcs!okstate.UUCP!uokmet.UUCP!root From: root@uokmet.UUCP Newsgroups: net.bugs.4bsd Subject: Re: 4.?bsd 'ls' and 'du' show up a prob Message-ID: <1000003@uokmet.UUCP> Date: Tue, 1-Apr-86 11:20:00 EST Article-I.D.: uokmet.1000003 Posted: Tue Apr 1 11:20:00 1986 Date-Received: Sat, 5-Apr-86 11:32:40 EST References: <6043@elsie.UUCP> Lines: 30 Nf-ID: #R:elsie.UUCP:6043:uokmet.UUCP:1000003:000:1065 Nf-From: uokmet.UUCP!root Apr 1 10:20:00 1986 >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