1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

Fix _for_each_pv() for mirror with core log.

This commit is contained in:
Alasdair Kergon 2006-10-05 21:24:48 +00:00
parent 929210542f
commit 8d18637eca
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.11 -
=====================================
Fix _for_each_pv() for mirror with core log.
Add lvm_dump.sh script to create a tarball of debugging info from a system.
Capture error messages in clvmd and pass them back to the user.
Remove unused #defines from filter-md.c.

View File

@ -1424,7 +1424,7 @@ static int _for_each_pv(struct cmd_context *cmd, struct logical_volume *lv,
!fn(cmd, seg_pvseg(seg, s), data))
return_0;
if (seg_is_mirrored(seg) &&
if (seg_is_mirrored(seg) && seg->log_lv &&
!_for_each_pv(cmd, seg->log_lv, 0, MIRROR_LOG_SIZE,
NULL, fn, data))
return_0;