]> sourceware.org Git - lvm2.git/commitdiff
Fix _for_each_pv() for mirror with core log.
authorAlasdair Kergon <agk@redhat.com>
Thu, 5 Oct 2006 21:24:48 +0000 (21:24 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 5 Oct 2006 21:24:48 +0000 (21:24 +0000)
WHATS_NEW
lib/metadata/lv_manip.c

index 0c9458afee49c8546a5c9f0f4d8f80a53534aa26..d5a3fddadd56efe1c488de2a9cc422fa215ca0d7 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -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.
index 96d32658a212743e4490753dfd21bdb541d9ca04..3b321e8360343ae9e156c6e02c41c44734916cb7 100644 (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;
This page took 0.046714 seconds and 5 git commands to generate.