~registry/lvm2/master

Viewing all changes in revision 6242.

  • Committer: Zdenek Kabelac
  • Date: 2012-01-05 15:38:18 UTC
  • Revision ID: git-v1:4fbde0143a553a7135558cc8e8bc0503beacdb78
Support rounding of percentage upward

We want to keep this logic -
when LV is extend - extend the LV by at least given amount,
when LV is reduced - reduce the LV by at most given amount.

So for this the rounding needs to be used.
Current logic which seems to satisfy give rule is to round up all
extent values for LV resize upward except for values with '-' sign
that are round downward.

This patch also fixes the problem when  lvextend --use-polices tried
to extend LV the by i.e. 20% - but the resulting 20% were smaller
the extent size thus before this patch no extension happened.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: