summaryrefslogtreecommitdiff
path: root/lib/display
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2014-08-22 01:26:14 +0100
committerAlasdair G Kergon <agk@redhat.com>2014-08-22 01:26:14 +0100
commit0b3d0e79f694ac9dc5a29270b2f791a250980058 (patch)
tree53f7f169e0761349092355f390efb0ad39039869 /lib/display
parent7e208d65043118907ff657c30f1423e96911fbbe (diff)
downloadlvm2-0b3d0e79f694ac9dc5a29270b2f791a250980058.tar.gz
lvresize: Fix raid/mirror and %PE handling code.
Sort out the lvresize calculation code to handle size changes specified as physical extents as well as logical extents and to process mirror resizing and raid extensions correctly. The 'approx alloc' option was masking the underlying problem.
Diffstat (limited to 'lib/display')
-rw-r--r--lib/display/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/display/display.c b/lib/display/display.c
index 6cdd07b8b..1b92b31e5 100644
--- a/lib/display/display.c
+++ b/lib/display/display.c
@@ -86,7 +86,7 @@ alloc_policy_t get_alloc_from_string(const char *str)
return ALLOC_INVALID;
}
-static const char *_percent_types[7] = { "NONE", "VGS", "FREE", "LVS", "PVS", "ORIGIN" };
+static const char *_percent_types[7] = { "NONE", "VG", "FREE", "LV", "PVS", "ORIGIN" };
const char *get_percent_string(percent_type_t def)
{