bug-coreutils
[Top][All Lists]
Advanced

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

Re: possible bug in du


From: Suran
Subject: Re: possible bug in du
Date: Sun, 23 Jan 2005 17:38:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8a6) Gecko/20050111


Well....it's a working movie with 10 episodes of a tv-series
so it cannnot possible by a sparse file requiring only 8kb
Could it be that ext3 reports the wrong size? Anything I could
do to find out what happenes?
Marcus



Andreas Schwab wrote:
Suran <address@hidden> writes:


address@hidden:/home/incomming/encoded$ du -h Standalone1.avi
8,0K    Standalone1.avi
^ ^ ^ ^


address@hidden:/home/incomming/encoded$ ls -l Standalone1.avi
-rw-r--r--  1 fox mldonkey 1819156788 2005-01-23 05:39 Standalone1.avi
                           ^ ^ ^ ^ ^ ^


You have a sparse file that is nearly empty.  There's nothing wrong with
this.

$ dd if=/dev/zero of=foo bs=1 seek=1819156787 count=1
1+0 records in
1+0 records out
1 byte (1 B) copied, 0.000117331 seconds, 8.5 kB/s
$ ls -l foo -rw-r--r-- 1 schwab suse 1819156788 Jan 23 16:29 foo
$ du -h foo
12K     foo

Andreas.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]