[Ocfs2-devel] Calculating volume size from superblock

Villalovos, John L john.l.villalovos at intel.com
Mon Aug 2 12:13:46 CDT 2004


Another simple question.

How do I calculate the size of the volume from the superblock?

Do I just use the two fields:

u_int32_t s_blocksize_bits;         /* Blocksize for this fs */
u_int32_t s_clustersize_bits;       /* Clustersize for this fs */

What is the formula to use?

Thanks,
John


More information about the Ocfs2-devel mailing list