Re: data loss in 2.6.9-rc1-mm1

From: Tim Schmielau
Date: Fri Aug 27 2004 - 06:19:16 EST


> $ uname -r
> 2.6.9-rc1-mm1
>
> $ dd if=/dev/zero of=testfile bs=$((1024*1024)) count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 0.028418 seconds (368981986 bytes/sec)
>
> $ du -sb testfile
> 10485760 testfile
>
> $ cat testfile > testfile.1
>
> $ du -sb testfile.1
> 10481664 testfile.1


What does ls -l testfile.1 give?
What you describe actually can be correct behaviour, since the file is
all zeros.

Although yes, it seems highly improbable someone implemented an
optimization that cuts away just one of 2560 pages.

Tim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/