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

Add some messages that indicate completion of RAID device replacement.

There were no messages printed upon completiion of RAID device replacement.
This could cause confusion/concern during automated recovery, because the
user sees the failure messages but no other messages indicating correction.
This commit is contained in:
Jonathan Earl Brassow 2012-02-22 16:03:55 +00:00
parent 972282bfbc
commit 7a5a5cb06f

View File

@ -1531,7 +1531,15 @@ static int lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *lp
if (!(failed_pvs = _failed_pv_list(lv->vg)))
return_0;
return lv_raid_replace(lv, failed_pvs, lp->pvh);
if (!lv_raid_replace(lv, failed_pvs, lp->pvh)) {
log_error("Failed to replace faulty devices in"
" %s/%s.", lv->vg->name, lv->name);
return 0;
}
log_print("Faulty devices in %s/%s successfully"
" replaced.", lv->vg->name, lv->name);
return 1;
}
/* "warn" if policy not set to replace */