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

raid: report error when specified devices are not contained

lvm2 always return non-zero error code when action cannot happen.
This commit is contained in:
Zdenek Kabelac 2017-06-21 11:45:20 +02:00
parent 31d153ced0
commit 61980bcf06

View File

@ -6660,9 +6660,9 @@ static int _lv_raid_rebuild_or_replace(struct logical_volume *lv,
}
if (!match_count) {
log_print_unless_silent("%s does not contain devices specified to %s.",
display_lvname(lv), action_str);
return 1;
log_error("Logical volume %s does not contain devices specified to %s.",
display_lvname(lv), action_str);
return 0;
} else if (match_count == raid_seg->area_count) {
log_error("Unable to %s all PVs from %s at once.",
action_str, display_lvname(lv));