[lvm-devel] master - lv_manip: add synchronization points

Zdenek Kabelac zkabelac at sourceware.org
Tue Sep 8 22:03:40 UTC 2020


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3e6bb772287a6d7f753b08780c7e913c98f5e307
Commit:        3e6bb772287a6d7f753b08780c7e913c98f5e307
Parent:        8d6f1f9768da5a66b8f5153d13c96f50f411155f
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Tue Sep 8 15:20:50 2020 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
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(+)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 284d0e52b..d72c49bea 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -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;
 }
 




More information about the lvm-devel mailing list