On Monday 04 June 2001 22:41, 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?

Files can have holes.

> FS code appears to explicitly allow for a
> filesystem driver to denominate i_blocks in other units, but any
> other unit would appear to break the stat () interface.

This can be fixed with a multiply.

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

Reply via email to