mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvcreate: fix "striped" limit
Fix regression limiting number of stripes to 8. Raise back to 128 as before. Resolves: rhbz1389546
This commit is contained in:
parent
43388f1220
commit
2fcbe34fe8
@ -558,8 +558,10 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd,
|
|||||||
else if (seg_is_any_raid6(lp))
|
else if (seg_is_any_raid6(lp))
|
||||||
max_images -= 2;
|
max_images -= 2;
|
||||||
}
|
}
|
||||||
} else
|
} else if (seg_is_mirrored(lp))
|
||||||
max_images = DEFAULT_MIRROR_MAX_IMAGES;
|
max_images = DEFAULT_MIRROR_MAX_IMAGES;
|
||||||
|
else
|
||||||
|
max_images = MAX_STRIPES;
|
||||||
|
|
||||||
/* Common mirror and raid params */
|
/* Common mirror and raid params */
|
||||||
if (arg_is_set(cmd, mirrors_ARG)) {
|
if (arg_is_set(cmd, mirrors_ARG)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user