Re: `du' control files
Charles Briscoe-Smith writes:
> If you disagree, I'd like to hear why.
Output of du and ls -s depends on blocksize. For example:
> ls -ls /sdb1/ls
56 -rwxr-xr-x 1 root root 50348 Mar 4 1997 /sdb1/ls
> ls -ls /sdc1/ls
51 -rwxr-xr-x 1 root root 50348 Feb 16 16:38 /sdc1/ls
# tune2fs -l /dev/sdb1 | & grep 'Block size'
Block size: 4096
# tune2fs -l /dev/sdc1 |& grep 'Block size'
Block size: 1024
Sparse files?
> dd if=/dev/zero of=/sdb1/z bs=1 count=1 seek=1024
> dd if=/dev/zero of=/sdc1/z bs=1 count=1 seek=1024
> ls -ls /sdb1/z /sdc1/z
4 -rw-r--r-- 1 root root 1025 Feb 16 16:44 /sdb1/z
1 -rw-r--r-- 1 root root 1025 Feb 16 16:45 /sdc1/z
(Strange, I had thought /sdb1/z would be 1 block and /sdc1/z 2. Hmm...)
-Topi
Reply to: