1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Heinz Mauelshagen 2017-03-10 18:57:06 +01:00
parent 43388f1220
commit 2fcbe34fe8

View File

@ -558,8 +558,10 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd,
else if (seg_is_any_raid6(lp))
max_images -= 2;
}
} else
} else if (seg_is_mirrored(lp))
max_images = DEFAULT_MIRROR_MAX_IMAGES;
else
max_images = MAX_STRIPES;
/* Common mirror and raid params */
if (arg_is_set(cmd, mirrors_ARG)) {