]> sourceware.org Git - lvm2.git/commitdiff
Replicator: extend _lv_each_dependency() with dependencies for Replicator devices
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:45:18 +0000 (12:45 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:45:18 +0000 (12:45 +0000)
WHATS_NEW
lib/metadata/metadata.c

index 42b4a6c317360b8110237fe605b1d5fa4311fa7a..99888ffe84d58d400d37903fe96254c1531da980 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,6 +1,7 @@
 Version 2.02.67 -
 ===============================
-  Add check_replicator_segment() for catching internal replicator errors.
+  Extend _lv_each_dependency() with Replicator dependencies.
+  Add check_replicator_segment() for catching internal Replicator errors.
   Initial lvm2 support for Replicator metadata handling.
   Checking open_count in all parents of presuspend_node.
   Added dm_tree_node_set_presuspend_node() to presuspend child in deactivate.
index 36d817c89600ed74161be0d18eb7eba42d593035..b49f975d5ae2a965d931cd558cd1d61271c7430b 100644 (file)
@@ -2001,6 +2001,8 @@ static int _lv_each_dependency(struct logical_volume *lv,
        struct lv_segment *lvseg;
 
        struct logical_volume *deps[] = {
+               (lv->rdevice && lv != lv->rdevice->lv) ? lv->rdevice->lv : 0,
+               (lv->rdevice && lv != lv->rdevice->slog) ? lv->rdevice->slog : 0,
                lv->snapshot ? lv->snapshot->origin : 0,
                lv->snapshot ? lv->snapshot->cow : 0 };
        for (i = 0; i < sizeof(deps) / sizeof(*deps); ++i) {
@@ -2011,6 +2013,8 @@ static int _lv_each_dependency(struct logical_volume *lv,
        dm_list_iterate_items(lvseg, &lv->segments) {
                if (lvseg->log_lv && !fn(lvseg->log_lv, data))
                        return_0;
+               if (lvseg->rlog_lv && !fn(lvseg->rlog_lv, data))
+                       return_0;
                for (s = 0; s < lvseg->area_count; ++s) {
                        if (seg_type(lvseg, s) == AREA_LV && !fn(seg_lv(lvseg,s), data))
                                return_0;
This page took 1.006095 seconds and 5 git commands to generate.