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

fix last checkin

This commit is contained in:
Alasdair Kergon 2005-11-09 15:41:42 +00:00
parent b4f1578fc2
commit 908db0785f

View File

@ -1053,8 +1053,8 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
continue; continue;
} }
if (_uuid_prefix_matches(uuid, uuid_prefix, uuid_prefix_len)) if (!_uuid_prefix_matches(uuid, uuid_prefix, uuid_prefix_len))
return 1; continue;
if (dm_tree_node_num_children(child, 0)) if (dm_tree_node_num_children(child, 0))
dm_tree_activate_children(child, uuid_prefix, uuid_prefix_len); 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, const char *log_uuid,
unsigned area_count) unsigned area_count)
{ {
struct dm_tree_node *log_node; struct dm_tree_node *log_node = NULL;
struct load_segment *seg; struct load_segment *seg;
if (!node->props.segment_count) { 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); seg = list_item(list_last(&node->props.segs), struct load_segment);
if (!(log_node = dm_tree_find_node_by_uuid(node->dtree, log_uuid))) { if (log_uuid && !(log_node = dm_tree_find_node_by_uuid(node->dtree, log_uuid))) {
log_error("Couldn't find snapshot log uuid %s.", log_uuid); log_error("Couldn't find mirror log uuid %s.", log_uuid);
return 0; return 0;
} }