mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tools: Suppress some unnecessary --stripesize warnings.
https://bugzilla.redhat.com/1366745
This commit is contained in:
parent
d83f2d766d
commit
114db6f745
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.165 -
|
Version 2.02.165 -
|
||||||
===================================
|
===================================
|
||||||
|
Suppress some unnecessary --stripesize parameter warnings.
|
||||||
Fix 'pvmove -n name ...' to prohibit collocation of RAID SubLVs
|
Fix 'pvmove -n name ...' to prohibit collocation of RAID SubLVs
|
||||||
|
|
||||||
Version 2.02.164 - 15th August 2016
|
Version 2.02.164 - 15th August 2016
|
||||||
|
@ -1281,10 +1281,12 @@ 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 (segtype_is_striped(segtype) && *stripes == 1 && *stripe_size) {
|
} else if (*stripes == 1 && (segtype_is_striped(segtype) || segtype_is_mirror(segtype))) {
|
||||||
log_print_unless_silent("Ignoring stripesize argument with single stripe.");
|
|
||||||
stripe_size_required = 0;
|
stripe_size_required = 0;
|
||||||
*stripe_size = 0;
|
if (*stripe_size) {
|
||||||
|
log_print_unless_silent("Ignoring stripesize argument with single stripe.");
|
||||||
|
*stripe_size = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stripe_size_required) {
|
if (stripe_size_required) {
|
||||||
|
Loading…
Reference in New Issue
Block a user