[comp.unix.microport] BITNET mail follows

RWMIRA01@ULKYVM.BITNET (08/01/89)

Does anyone know of a bug in du where it computes filesizes wrong?  A machine t
that I have access to is running 3.0e1 and when I do a du I get numbers that
on some files are one block greater than that reported by stat() in st_size.
Now, my personal calculations which appear to be correct are performed by
taking the size returned from stat() and / 512.  If the size % 512 is greater
than 0 then add 1 to the blocks.  The only thing we can figure is that du is
using an allocation and not the file size.

Please E-Mail responses as I do not subscribe to this group.

Thanks in Advance
Rob Miracle