summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-08-01 14:29:01 -0500
committerDavid Teigland <teigland@redhat.com>2016-08-01 14:43:42 -0500
commitbfd63a70d88281d94d2492a2382e812cc2bc1aa2 (patch)
tree4810461ade2e9334fa9726c4ccf9c0479da398ab
parentc490be9134a3c571636ab67d99ffeeac27d9b56f (diff)
downloadlvm2-bfd63a70d88281d94d2492a2382e812cc2bc1aa2.tar.gz
lvconvert: --stripes is an alias for --type striped
This was missing from the mapping of syntax to each operation.
-rw-r--r--tools/lvconvert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index dd0102f8a..f4dce7f3c 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -3863,6 +3863,9 @@ static int _convert_raid_raid(struct cmd_context *cmd, struct logical_volume *lv
/*
* Convert a raid* LV to a striped LV.
* lvconvert --type striped LV
+ *
+ * Alternate syntax:
+ * lvconvert --stripes Number LV
*/
static int _convert_raid_striped(struct cmd_context *cmd, struct logical_volume *lv,
struct lvconvert_params *lp)
@@ -4224,7 +4227,7 @@ static int _convert_raid(struct cmd_context *cmd, struct logical_volume *lv,
if (segtype_is_raid(lp->segtype))
return _convert_raid_raid(cmd, lv, lp);
- if (!strcmp(lp->type_str, SEG_TYPE_NAME_STRIPED))
+ if (!strcmp(lp->type_str, SEG_TYPE_NAME_STRIPED) || arg_is_set(cmd, stripes_ARG))
return _convert_raid_striped(cmd, lv, lp);
if (_linear_type_requested(lp->type_str))