Calculating volume size (CV capacity unit is blocks)

To calculate the user area capacity of a CV whose capacity unit is defined as blocks:

ceil(user-specified-CV-capacity / 2)

where

To calculate the entire capacity of a CV:

ceil(user-specified-CV-capacity / (boundary-value * 2)) * (boundary-value * 2)

where