mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvconvert: Don't allow --repair on raid0 LVs.
This commit is contained in:
parent
bf0eaafa6b
commit
88e6abc5a0
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.165 -
|
Version 2.02.165 -
|
||||||
===================================
|
===================================
|
||||||
|
Don't allow lvconvert --repair on raid0 devices.
|
||||||
No longer adjust incorrect number of raid stripes supplied to lvcreate.
|
No longer adjust incorrect number of raid stripes supplied to lvcreate.
|
||||||
Move lcm and gcd to lib/misc.
|
Move lcm and gcd to lib/misc.
|
||||||
Suppress some unnecessary --stripesize parameter warnings.
|
Suppress some unnecessary --stripesize parameter warnings.
|
||||||
|
@ -1963,7 +1963,13 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!seg_is_striped(seg) && !lv_raid_percent(lv, &sync_percent)) {
|
if (seg_is_striped(seg)) {
|
||||||
|
log_error("Cannot repair LV %s of type raid0.",
|
||||||
|
display_lvname(lv));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!lv_raid_percent(lv, &sync_percent)) {
|
||||||
log_error("Unable to determine sync status of %s.",
|
log_error("Unable to determine sync status of %s.",
|
||||||
display_lvname(lv));
|
display_lvname(lv));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user