Skip to contentSkip to conversation

stable-2.02 - lv_manip: add synchronization points

PATCH Zdenek Kabelac 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6d2fc49e9957308e6c770c2a84f3a34b9b416d2b
Commit:        6d2fc49e9957308e6c770c2a84f3a34b9b416d2b
Parent:        d063ea27b46f2c3e2575a55576ea15e5957657c6
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Sep 8 15:20:50 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 16 17:07:58 2020 +0200

lv_manip: add synchronization points

---
 lib/metadata/lv_manip.c | 3 +++
 1 file changed, 3 insertions(+)
lib/metadata/lv_manip.c +3 -0
index 97bab5256..945f5cb60 100644
@@ -7322,6 +7322,9 @@ out:
 			r = 0; /* Continue deactivating as many as possible. */
 		}
 
+	if (!sync_local_dev_names(vg->cmd))
+		log_debug("Failed to sync local device names after deactivation of wiped volumes.");
+
 	return r;
 }