Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't adjust actual lv size based on md metadata space requirements.
We adjusted the amount of disk space needed, but we didn't alter the planned device size.
- Loading branch information
547dd71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we alter the planned device size too instead? Or does this calculation happen in some other place? Or do we want to drop this extra space for metadata from our calculations? If yes, we need to remove it in a few more places.
547dd71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a separate calculation for the required disk/pv space (
_get_total_space
), which includes extra space for metadata. Having created the needed space in the PVs, there is no need to adjust the device size at all.