bug-coreutils
[Top][All Lists]
Advanced

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

Re: possible bug in du


From: Andreas Schwab
Subject: Re: possible bug in du
Date: Sun, 23 Jan 2005 16:31:21 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

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.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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