]> sourceware.org Git - lvm2.git/commitdiff
Remove false "failed to find tree node for <lv>" error from _cached_info().
authorMike Snitzer <snitzer@redhat.com>
Mon, 8 Feb 2010 23:28:06 +0000 (23:28 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 8 Feb 2010 23:28:06 +0000 (23:28 +0000)
When activating a merging origin it is valid, and expected, to not have
a node in the deptree for both the origin and its merging snapshot.  The
_cached_info() caller is only concerned with whether a device is open.
If there isn't a node in the tree the associated device is definitely
not open.

WHATS_NEW
lib/activate/dev_manager.c

index e8aa222a45c248a2886f6a0d42998abff8aaccb6..341009023b5b1f0a6671fc27b884bfb12bc5478b 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.61 - 
 ===================================
+  Remove false "failed to find tree node for" error when activating merging origin.
   Make lvconvert --repair --use-policies exit with success when no action is needed.
   Add multiple snapshot lv 'lvconvert --merge @tag' support via process_each_lv().
   Fix inappropriate second resync when adding mimage to core-logged mirror.
index 60235747c36d75ac4912c15836b6371647d841fb..6fbc3921c62b166264f4c54fe782394d716cf89a 100644 (file)
@@ -264,10 +264,9 @@ static const struct dm_info *_cached_info(struct dm_pool *mem,
                return NULL;
        }
 
-       if (!(dnode = dm_tree_find_node_by_uuid(dtree, dlid))) {
-               log_error("failed to find tree node for %s", lv->name);
+       /* An activating merging origin won't have a node in the tree yet */
+       if (!(dnode = dm_tree_find_node_by_uuid(dtree, dlid)))
                return NULL;
-       }
 
        if (!(dinfo = dm_tree_node_get_info(dnode))) {
                log_error("failed to get info from tree node for %s", lv->name);
This page took 0.046776 seconds and 5 git commands to generate.