]> sourceware.org Git - lvm2.git/commitdiff
fix last checkin
authorAlasdair Kergon <agk@redhat.com>
Wed, 9 Nov 2005 15:41:42 +0000 (15:41 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 9 Nov 2005 15:41:42 +0000 (15:41 +0000)
libdm/libdm-deptree.c

index 5c7c93b4f9a2cb755350211abf199b0ee9a449f6..d828eb22b917645590136ff136abaa73e58825ef 100644 (file)
@@ -1053,8 +1053,8 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
                        continue;
                }
 
-               if (_uuid_prefix_matches(uuid, uuid_prefix, uuid_prefix_len))
-                       return 1;
+               if (!_uuid_prefix_matches(uuid, uuid_prefix, uuid_prefix_len))
+                       continue;
 
                if (dm_tree_node_num_children(child, 0))
                        dm_tree_activate_children(child, uuid_prefix, uuid_prefix_len);
@@ -1579,7 +1579,7 @@ int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node,
                                          const char *log_uuid,
                                          unsigned area_count)
 {
-       struct dm_tree_node *log_node;
+       struct dm_tree_node *log_node = NULL;
        struct load_segment *seg;
 
        if (!node->props.segment_count) {
@@ -1589,8 +1589,8 @@ int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node,
 
        seg = list_item(list_last(&node->props.segs), struct load_segment);
 
-       if (!(log_node = dm_tree_find_node_by_uuid(node->dtree, log_uuid))) {
-               log_error("Couldn't find snapshot log uuid %s.", log_uuid);
+       if (log_uuid && !(log_node = dm_tree_find_node_by_uuid(node->dtree, log_uuid))) {
+               log_error("Couldn't find mirror log uuid %s.", log_uuid);
                return 0;
        }
 
This page took 0.037381 seconds and 5 git commands to generate.