USG 5.0 'find' and 'ls' blocksize questions
rcj at burl.UUCP
rcj at burl.UUCP
Fri Sep 30 05:41:12 AEST 1983
Our filesystems are configured as 1024-byte-block systems. The
'-s' option on 'ls', however, lists the block sizes of files
in number of *512*-byte blocks -- this discrepancy is not noted
in the man page to my knowledge. Also, the 'find' command states
that its '-size' option takes a number of 512-byte blocks as an
argument, but this is not true.
find /usr/games -size 133 -exec ls -ls {} \;
yields:
269 -r-x------ 1 bin bin 135920 Apr 11 18:32 cbrogue
Note that 1024 * 133 = 136192; 'find' is obviously using 1024-byte blocks.
No other size will find the file 'cbrogue'.
Anybody know of a rationale for this stuff?
P.S.: Before anyone points out from the 'ls -ls' that 269 * 512 = 137728;
which is much too large, remember that the '-s' option of 'ls' includes
in its block count the number of indirect blocks as well.
--
The MAD Programmer -- 919-228-3814 (Cornet 291)
alias: Curtis Jackson ...![ floyd clyde ihnp4 mhuxv ]!burl!rcj
More information about the Comp.unix.wizards
mailing list