On Mon, Jun 04, 2001 at 01:41:36PM -0700, Bryan Henderson wrote:

> I'm more confused than ever about the i_blocks (filesize divided by 512)
> field.  I note that in both the inode and the stat() result, the filesize
> in bytes exists, and presumably always has.  So why would anyone ever want
> to know separately how many 512 byte units of data are in the file?

st_blocks shows the actual on-disk size of the file, or at least a reasonable
approximation. st_size shows the number of bytes. For a file with holes
st_blocks can be much smaller than st_size/512.

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]

Reply via email to