mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-07 05:58:00 +03:00
revert - alternative pvmove fix, disabling preloading completely for now
This commit is contained in:
parent
e178963c0b
commit
e6a6954ef1
@ -274,8 +274,7 @@ int dm_tree_deactivate_children(struct dm_tree_node *dnode,
|
||||
*/
|
||||
int dm_tree_preload_children(struct dm_tree_node *dnode,
|
||||
const char *uuid_prefix,
|
||||
size_t uuid_prefix_len,
|
||||
int resume_children);
|
||||
size_t uuid_prefix_len);
|
||||
|
||||
/*
|
||||
* Resume a device plus all dependencies.
|
||||
|
@ -1357,8 +1357,7 @@ out:
|
||||
|
||||
int dm_tree_preload_children(struct dm_tree_node *dnode,
|
||||
const char *uuid_prefix,
|
||||
size_t uuid_prefix_len,
|
||||
int resume_children)
|
||||
size_t uuid_prefix_len)
|
||||
{
|
||||
void *handle = NULL;
|
||||
struct dm_tree_node *child;
|
||||
@ -1377,7 +1376,7 @@ int dm_tree_preload_children(struct dm_tree_node *dnode,
|
||||
continue;
|
||||
|
||||
if (dm_tree_node_num_children(child, 0))
|
||||
dm_tree_preload_children(child, uuid_prefix, uuid_prefix_len, resume_children);
|
||||
dm_tree_preload_children(child, uuid_prefix, uuid_prefix_len);
|
||||
|
||||
if (!(name = dm_tree_node_get_name(child))) {
|
||||
stack;
|
||||
@ -1392,10 +1391,6 @@ int dm_tree_preload_children(struct dm_tree_node *dnode,
|
||||
}
|
||||
}
|
||||
|
||||
/* Don't load tables yet if this flag is set */
|
||||
if (!resume_children)
|
||||
continue;
|
||||
|
||||
if (!child->info.inactive_table && child->props.segment_count) {
|
||||
if (!_load_node(child)) {
|
||||
stack;
|
||||
|
Loading…
x
Reference in New Issue
Block a user