Skip to contentSkip to conversation

master - lv_manip: add synchronization points

PATCH Zdenek Kabelac 1 participant 1 message Sep 8, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3e6bb772287a6d7f753b08780c7e913c98f5e307
Commit:        3e6bb772287a6d7f753b08780c7e913c98f5e307
Parent:        8d6f1f9768da5a66b8f5153d13c96f50f411155f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Sep 8 15:20:50 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Sep 8 21:23:03 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 284d0e52b..d72c49bea 100644
@@ -7750,6 +7750,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;
 }