]> sourceware.org Git - lvm2.git/commitdiff
Suppress unnecessary resumes.
authorAlasdair Kergon <agk@redhat.com>
Tue, 22 Nov 2005 19:31:20 +0000 (19:31 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 22 Nov 2005 19:31:20 +0000 (19:31 +0000)
libdm/libdm-deptree.c

index d60f8607d9d876bb171f2d2950d164bcab100799..de7dc4c1f7ba99d53d42a67bda8685a8d8754496 100644 (file)
@@ -1418,6 +1418,9 @@ int dm_tree_preload_children(struct dm_tree_node *dnode,
                if (!dm_tree_node_num_children(child, 1))
                        continue;
 
+               if (!child->info.inactive_table && !child->info.suspended)
+                       continue;
+
                if (!_resume_node(name, child->info.major, child->info.minor, &newinfo)) {
                        log_error("Unable to resume %s (%" PRIu32
                                  ":%" PRIu32 ")", name, child->info.major,
This page took 0.033886 seconds and 5 git commands to generate.