diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-05 15:38:18 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-01-05 15:38:18 +0000 |
commit | 4fbde0143a553a7135558cc8e8bc0503beacdb78 (patch) | |
tree | 535afe3dc1d4a2ccdd7a58df69fcb20b03deea3a /man/lvreduce.8.in | |
parent | 1aae627433e7ec2a4acbcffa04be4bf4f89dba65 (diff) | |
download | lvm2-4fbde0143a553a7135558cc8e8bc0503beacdb78.tar.gz lvm2-4fbde0143a553a7135558cc8e8bc0503beacdb78.tar.xz lvm2-4fbde0143a553a7135558cc8e8bc0503beacdb78.zip |
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.
Diffstat (limited to 'man/lvreduce.8.in')
-rw-r--r-- | man/lvreduce.8.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/man/lvreduce.8.in b/man/lvreduce.8.in index 4cfde2b8..0a3dcb3f 100644 --- a/man/lvreduce.8.in +++ b/man/lvreduce.8.in @@ -66,6 +66,8 @@ size of the Logical Volume with the suffix \fI%LV\fP, as a percentage of the remaining free space in the Volume Group with the suffix \fI%FREE\fP, or (for a snapshot) as a percentage of the total space in the Origin Logical Volume with the suffix \fI%ORIGIN\fP. +The resulting value for the substraction is rounded downward, for the absolute +size it is rounded upward. .TP .IR \fB\-L ", " \fB\-\-size " [" \- ] LogicalVolumeSize [ bBsSkKmMgGtTpPeE ] Reduce or set the logical volume size in units of megabytes. |