1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

raid: lvconvert uses transient check for raid

Also check if the raid status isn't teling us there is something wrong
with any raid image device.
This commit is contained in:
Zdenek Kabelac 2016-11-21 14:54:51 +01:00
parent 23809379ba
commit 851095a6af
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.168 -
====================================
Use transient raid check before repairing raid volume.
Implement transient status check for raid volumes.
Only log msg as debug if lvm2-lvmdbusd unit missing for D-Bus notification.
Missing stripe filler now could be also 'zero'.

View File

@ -2068,6 +2068,9 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
return 0;
}
if (!lv_check_transient(lv)) /* TODO check this in lib for all commands? */
stack; /* TODO: break here upon fail or always try to fix it? */
_lvconvert_raid_repair_ask(cmd, lp, &replace);
if (replace) {