Arun Sharma wrote:

>linux $ du -sk *
>1      f1
>17     f16
>2      f2
>33     f32
>4      f4
>65     f64
>8      f8
>
>freebsd $ du -sk *
>1       f1
>16      f16
>2       f2
>32      f32
>4       f4
>64      f64
>8       f8       

What does this imply ? Is linux  lying or FreeBSD ? (I assume you got the
outputs above by mounting the same e2fs drive under the 2 systems)

Since "man du" specifies that the number indicated is disk *usage*, I would
say that the linux implementation is the more correct one. Does match
pretty well with the theory I had given - i.e. For files from 1 to 12K in
size the disk usage would exactly correspond to the filesize, sizes from 13
to 268K  should show 1 extra block, and sizes above that should show at
least 2 extra - (for 1K blocksize).

What do you say ? Is this a bug in du under FreeBSD ?

Kala
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.

Reply via email to