Calculating fixed-size volume size (CV capacity unit is blocks)

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

user-specified-CV-capacity / 2

where

To calculate the entire capacity of a CV:

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

where