[Ocfs2-tools-devel] [PATCH 13/19] Ocfs2-tools: Add running codes for '--file-statistics' in operation.c

Wengang Wang wen.gang.wang at oracle.com
Mon Apr 19 18:23:44 PDT 2010


Hi Tristan,

Thanks for your explanation!

regards,
wengang.
> >>
> >>
> >>[oracle at ocfs2-test4 ~]$ o2info --file-statistics /storage/testfile
> >>File: /storage/testfile
> >>Size: 0 Blocks: 0 IO Block: 4096 regular empty file
> >>Device: 808h/2056d Inode: 17962 Links: 1
> >>Frag%: 0.00 Clusters: 0 Extents: 0 Score: 0
> >
> >"Frag%" means the fragmentation in percentage? --looks odd to me :)
> Hi wengang,
> 
> frag = 100 * (e / c);
> 
> 
> Here 'e' is the number of all extents in a volume, while 'c' is all
> clusters of volume,
> 
> it's no more accurate than a ratio of 'extents / clusters';) and
> it's quite rough.
> 
> The operation 'freefrag' of o2info will make much more sense on this point!
> 
> 
> Tristan.
> 
> >regards,
> >wengang.
> 



More information about the Ocfs2-tools-devel mailing list