diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 3ea0502bc..75bd1b308 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.78 - =================================== + Automatically deactivate failed preloaded dm tree node. 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. diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 096eba2f0..e4a574d05 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -2496,6 +2496,11 @@ int dm_tree_preload_children(struct dm_tree_node *dnode, log_error("Unable to resume %s (%" PRIu32 ":%" PRIu32 ")", child->name, child->info.major, 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; continue; }