OOT: sharing about my research about why stat and ls show difference used block count upon a file

Mulyadi Santosa mulyadi.santosa at gmail.com
Sun Jul 3 13:02:58 EDT 2011


Dear Manish...

On Sun, Jul 3, 2011 at 03:13, Manish Katiyar <mkatiyar at gmail.com> wrote:
> After reading a bit of ext3 code, I'm now fairly sure the blocks
> allocated for extended attributes are counted as i_blocks (which stat
> returns) for an inode. Extented attributes for an inode can either
> reside in the inode or can at max span 1 filesystem block{size.}.  The
> extra allocated block number for the inode is stored in i_file_acl
> field of the inode.

Thank you very much for your help! It was really confusing, but slowly
I gather the pieces now.

I got feedback from Linkedin group too, I'll share about that later.
Again, thanks a lot


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list