1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

toollib: avoid printing default stripe size

When user is not creating striped LV, do not print
rather confusing info about default stripe size.
This commit is contained in:
Zdenek Kabelac 2017-11-17 23:02:44 +01:00
parent 16ef133be2
commit 5b5c5cc618
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.177 - Version 2.02.177 -
==================================== ====================================
Fix printing of default stripe size when user is not using stripes.
Activation code for pvmove automatically discovers holding LVs for resume. Activation code for pvmove automatically discovers holding LVs for resume.
Make a pvmove LV locking holder. Make a pvmove LV locking holder.
Do not change critical section counter on resume path without real resume. Do not change critical section counter on resume path without real resume.

View File

@ -1271,7 +1271,7 @@ static int _validate_stripe_params(struct cmd_context *cmd, const struct segment
if (!stripe_size_required && *stripe_size) { if (!stripe_size_required && *stripe_size) {
log_print_unless_silent("Ignoring stripesize argument for %s devices.", segtype->name); log_print_unless_silent("Ignoring stripesize argument for %s devices.", segtype->name);
*stripe_size = 0; *stripe_size = 0;
} else if (*stripes == 1 && (segtype_is_striped_target(segtype) || segtype_is_mirror(segtype))) { } else if (*stripes == 1 && stripe_size_required) {
stripe_size_required = 0; stripe_size_required = 0;
if (*stripe_size) { if (*stripe_size) {
log_print_unless_silent("Ignoring stripesize argument with single stripe."); log_print_unless_silent("Ignoring stripesize argument with single stripe.");