[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: `du' control files



In article <[🔎] 199802161452.QAA08399@pop.ml.tele.fi> you wrote:
> 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...)

The first file takes 4 1k blocks, and the second only 1 block cause it's
sparse.

-- 
Debian GNU/Linux 1.3 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply to: