mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Differentiate between the two 'log device failed' cases in vgreduce.
This commit is contained in:
parent
0b431b8a17
commit
1f84f09381
@ -286,13 +286,18 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
|
||||
list_iterate_items(seg, &mirrored_seg->log_lv->segments) {
|
||||
/* FIXME: The second test shouldn't be required */
|
||||
if ((seg->segtype ==
|
||||
get_segtype_from_string(vg->cmd, "error")) ||
|
||||
(!strcmp(seg->segtype->name, "error"))) {
|
||||
get_segtype_from_string(vg->cmd, "error"))) {
|
||||
log_print("The log device for %s/%s has failed.",
|
||||
vg->name, mirrored_seg->lv->name);
|
||||
remove_log = 1;
|
||||
break;
|
||||
}
|
||||
if (!strcmp(seg->segtype->name, "error")) {
|
||||
log_print("Log device for %s/%s has failed.",
|
||||
vg->name, mirrored_seg->lv->name);
|
||||
remove_log = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user