Skip to contentSkip to conversation

stable-2.02 - dm: remove created devices on error path

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=ef5cddc20847b64b11a729ba3ce5dde12a9f606c
Commit:        ef5cddc20847b64b11a729ba3ce5dde12a9f606c
Parent:        7c262bfc85f62c94421ab2d687c74585c3e27d3f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Oct 16 20:58:58 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 16 21:10:04 2020 +0200

dm: remove created devices on error path

DM tree keeps track of created device while preloading a device tree. When fail occures during such preload, it will now try to remove all created and preloaded device. This makes it easier to maintain stacking of device, since we do not need to check in-depth for existance of all possible created devices during the failure.

---
 WHATS_NEW_DM          |  1 +
 libdm/libdm-deptree.c | 75 +++++++++++++++++----------------------------------
 2 files changed, 26 insertions(+), 50 deletions(-)
WHATS_NEW_DM +1 -0
index f1b4f2b6a..56d9e0684 100644
@@ -1,5 +1,6 @@
 Version 1.02.172 - 
 ==================================
+  Try to remove all created devices on dm preload tree error path.
   Fix dm_list interators with gcc 10 optimization (-ftree-pta).
   Dmeventd handles timer without looping on short intervals.
 
libdm/libdm-deptree.c +25 -50

129 lines not on this page · raw message