master - dm: remove created devices on error path
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a17ec7e0baa737b45900cc4f97823c95f9dd8c56 Commit: a17ec7e0baa737b45900cc4f97823c95f9dd8c56 Parent: b75c2dfe1b28efae08be9c7b55e904b8b695a8cd Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Oct 16 20:58:58 2020 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Oct 19 16:53:19 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 + device_mapper/libdm-deptree.c | 81 +++++++++++++------------------------------ libdm/libdm-deptree.c | 75 +++++++++++++-------------------------- 3 files changed, 51 insertions(+), 106 deletions(-)
WHATS_NEW_DM +1 -0
@@ -7,6 +7,7 @@ Version 1.02.173 - 09th August 2020 Version 1.02.171 - 26th March 2020 ================================== + 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.
device_mapper/libdm-deptree.c +25 -56
135 lines not on this page · raw message
libdm/libdm-deptree.c +25 -50
129 lines not on this page · raw message