1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-15 19:33:17 +03:00

some deactivation fixes

This commit is contained in:
Alasdair Kergon
2005-10-17 19:06:20 +00:00
parent 64efa4627d
commit 2a7ac78f02

View File

@@ -2267,18 +2267,18 @@ static int _deactivate_children(struct deptree_node *dnode, const char *root_uui
const char *name; const char *name;
const char *uuid; const char *uuid;
while((child = dm_deptree_next_child(&handle, child, 0))) { while((child = dm_deptree_next_child(&handle, dnode, 0))) {
if (!(dinfo = dm_deptree_node_get_info(child))) { if (!(dinfo = dm_deptree_node_get_info(child))) {
stack; stack;
continue; continue;
} }
if (!(name = dm_deptree_node_get_name(dnode))) { if (!(name = dm_deptree_node_get_name(child))) {
stack; stack;
continue; continue;
} }
if (!(uuid = dm_deptree_node_get_uuid(dnode))) { if (!(uuid = dm_deptree_node_get_uuid(child))) {
stack; stack;
continue; continue;
} }
@@ -2330,7 +2330,7 @@ int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv)
} }
log_debug("Getting device info for %s [%s]", name, dlid); log_debug("Getting device info for %s [%s]", name, dlid);
if (!_info(name, dlid, 0, 0, &info, dm->mem, &uuid)) { if (!_info(name, dlid, 0, 1, &info, dm->mem, &uuid)) {
stack; stack;
return 0; return 0;
} }