1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Use mirror's uuid for a core log.

This commit is contained in:
Alasdair Kergon 2006-05-11 19:47:53 +00:00
parent aeb2c277a8
commit 49fba23c81
2 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.06 - Version 2.02.06 -
================================= =================================
Use mirror's uuid for a core log.
Add mirror log fault-handling policy. Add mirror log fault-handling policy.
Improve mirror warning messages and tidy dmeventd syslog output. Improve mirror warning messages and tidy dmeventd syslog output.
Propagate nosync flag around cluster. Propagate nosync flag around cluster.

View File

@ -238,11 +238,21 @@ static int _add_log(struct dev_manager *dm, struct lv_segment *seg,
(seg->lv->vg->status & CLUSTERED))) (seg->lv->vg->status & CLUSTERED)))
clustered = 1; clustered = 1;
if (seg->log_lv && if (seg->log_lv) {
!(log_dlid = build_dlid(dm, seg->log_lv->lvid.s, NULL))) { /* If disk log, use its UUID */
log_error("Failed to build uuid for log LV %s.", if (!(log_dlid = build_dlid(dm, seg->log_lv->lvid.s, NULL))) {
seg->log_lv->name); log_error("Failed to build uuid for log LV %s.",
return 0; seg->log_lv->name);
return 0;
}
} else {
/* If core log, use mirror's UUID and set DM_CORELOG flag */
if (!(log_dlid = build_dlid(dm, seg->lv->lvid.s, NULL))) {
log_error("Failed to build uuid for mirror LV %s.",
seg->lv->name);
return 0;
}
log_flags |= DM_CORELOG;
} }
if (mirror_in_sync() && !(seg->status & PVMOVE)) if (mirror_in_sync() && !(seg->status & PVMOVE))