mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: deactivate failed node in preload
If the resume of preloaded node fails, do not leave such node in the table - since it may not be easy to detach such node later when the node is i.e. internal. i.e. failing activation of the thin pool with mismatching chunk size may leave -tpool device in the table, which could have been then removed only by dmsetup command.
This commit is contained in:
parent
ade2f47829
commit
97f8454ecc
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.78 -
|
Version 1.02.78 -
|
||||||
===================================
|
===================================
|
||||||
|
Automatically deactivate failed preloaded dm tree node.
|
||||||
Add DM_DISABLE_UDEV environment variable to manage dev nodes by libdm only.
|
Add DM_DISABLE_UDEV environment variable to manage dev nodes by libdm only.
|
||||||
Fix dm_task_set_cookie to properly process udev flags if udev_sync disabled.
|
Fix dm_task_set_cookie to properly process udev flags if udev_sync disabled.
|
||||||
|
|
||||||
|
@ -2496,6 +2496,11 @@ int dm_tree_preload_children(struct dm_tree_node *dnode,
|
|||||||
log_error("Unable to resume %s (%" PRIu32
|
log_error("Unable to resume %s (%" PRIu32
|
||||||
":%" PRIu32 ")", child->name, child->info.major,
|
":%" PRIu32 ")", child->name, child->info.major,
|
||||||
child->info.minor);
|
child->info.minor);
|
||||||
|
if (!_deactivate_node(child->name, child->info.major, child->info.minor,
|
||||||
|
&child->dtree->cookie, child->udev_flags, 0))
|
||||||
|
log_error("Unable to deactivate %s (%" PRIu32
|
||||||
|
":%" PRIu32 ")", child->name, child->info.major,
|
||||||
|
child->info.minor);
|
||||||
r = 0;
|
r = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user