rhel-8.8.0 - thin: fix message processing on thin-pool extension
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7db3a53d8a3aa7401337fb9aaf00f19cf4407e70 Commit: 7db3a53d8a3aa7401337fb9aaf00f19cf4407e70 Parent: 0b9d9963b8f15a6f12a0149a62809fa9b846c5c5 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Mar 30 14:16:11 2022 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Tue Nov 29 14:09:25 2022 +0100
thin: fix message processing on thin-pool extension
When thin-pool had queued some delete message on extension operation such message has been 'lost' and thin-pool kernel metadata has been left with a thin volume that no longer existed for lvm2 metadata.
(cherry picked from commit 09371131469f7398c597a5fb30dc565859253cc2)
--- WHATS_NEW | 4 ++ lib/metadata/lv_manip.c | 2 +- test/shell/lvextend-thin-adddel.sh | 78 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-)
WHATS_NEW +4 -0
@@ -2,6 +2,10 @@ Version 2.03.17 - =============================== Fix lvconvert --test --type vdo-pool execution. +Version 2.03.16 - +==================================== + Fix lossing of delete message on thin-pool extension. + Version 2.03.14 - 20th October 2021 =================================== Device scanning is skipping directories on different filesystems.
lib/metadata/lv_manip.c +1 -1
@@ -6179,7 +6179,7 @@ int lv_resize(struct logical_volume *lv,if (lv_is_thin_pool (lock_lv)) {/* Update lvm pool metadata (drop messages). */ -if (!update_pool_lv (lock_lv,0 )) +if (!update_pool_lv (lock_lv,1 )) goto_bad; }
test/shell/lvextend-thin-adddel.sh new file +78 -0
78 lines not on this page · raw message