diff options
author | David Teigland <teigland@redhat.com> | 2016-08-01 14:29:01 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-08-01 14:43:42 -0500 |
commit | bfd63a70d88281d94d2492a2382e812cc2bc1aa2 (patch) | |
tree | 4810461ade2e9334fa9726c4ccf9c0479da398ab | |
parent | c490be9134a3c571636ab67d99ffeeac27d9b56f (diff) | |
download | lvm2-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.c | 5 |
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)) |