Re: struct inode.i_blocks

From: ejc (eli.carter@inet.com)
Date: Fri May 26 2000 - 12:52:03 EST


ejc wrote:
> Does struct inode.i_blocks count only data blocks in use by a file, or
> does it include the "overhead" of representing that file on disk?
> (i.e., the indirect blocks, etc.)

Nevermind, I found the answer.

Answer: i_blocks includes indirect & double indirect blocks
Source: fs/dquot.c:isize_to_blocks()

(Someone correct me if I'm completely off here...)

Eli

-- 
--------------------. "To the systems programmer, users and applications
Eli Carter          | serve only to provide a test load."
eli.carter@inet.com `---------------------------------- (random fortune)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:16 EST