File retry-cleanup-deactivation.patch of Package lvm2

Index: LVM2.2.02.98/lib/activate/dev_manager.c
===================================================================
--- LVM2.2.02.98.orig/lib/activate/dev_manager.c
+++ LVM2.2.02.98/lib/activate/dev_manager.c
@@ -2169,6 +2169,8 @@ static int _tree_action(struct dev_manag
 	/* Only process nodes with uuid of "LVM-" plus VG id. */
 	switch(action) {
 	case CLEAN:
+		if (retry_deactivation())
+			dm_tree_retry_remove(root);
 		/* Deactivate any unused non-toplevel nodes */
 		if (!_clean_tree(dm, root, laopts->origin_only ? dlid : NULL))
 			goto_out;
openSUSE Build Service is sponsored by