[Top][All Lists]

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

Re: possible bug in du

From: James Youngman
Subject: Re: possible bug in du
Date: Sun, 23 Jan 2005 17:13:39 +0000
User-agent: Mutt/1.3.28i

On Sun, Jan 23, 2005 at 05:38:53PM +0100, Suran wrote:
> 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?

        stat Standalone1.avi
or, if you are using GNU/Linux - 
        strace -v -e lstat64 stat Standalone1.avi

Multiply the "Blocks:" figure by 512 (in the case of the stat output,
this is st_blocks).  If the result is less than the file size, the
file is a sparse file.  An alternative is to compare the first and
second sizes given by

        ls --block-size=1 -ls Standalone1.avi


reply via email to

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