From 5f58f902c269c6378902618daa1eac01c095bb61 Mon Sep 17 00:00:00 2001 From: workingwei Date: Fri, 14 Nov 2025 14:27:25 +0800 Subject: [PATCH] lvmdbusd fix python script --- 0031-lvmdbusd-fix-python-script.patch | 27 +++++++++++++++++++++++++++ lvm2.spec | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0031-lvmdbusd-fix-python-script.patch diff --git a/0031-lvmdbusd-fix-python-script.patch b/0031-lvmdbusd-fix-python-script.patch new file mode 100644 index 0000000..1b040f3 --- /dev/null +++ b/0031-lvmdbusd-fix-python-script.patch @@ -0,0 +1,27 @@ +From 493d8908fbd859d744941731bda83682817c2e51 Mon Sep 17 00:00:00 2001 +From: Tobias Stoeckmann +Date: Fri, 13 Sep 2024 18:35:18 +0200 +Subject: [PATCH] lvmdbusd: Fix Python script + +The thread does not contain field "damon" but "daemon". + +Actually found with codespell. + +Signed-off-by: Tobias Stoeckmann +--- + daemons/lvmdbusd/main.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py +index c9821e07e..b8238df47 100644 +--- a/daemons/lvmdbusd/main.py ++++ b/daemons/lvmdbusd/main.py +@@ -214,7 +214,7 @@ def main(): + cfg.loop = GLib.MainLoop() + + for thread in thread_list: +- thread.damon = True ++ thread.daemon = True + thread.start() + + # In all cases we are going to monitor for udev until we get an diff --git a/lvm2.spec b/lvm2.spec index d9731c8..269556d 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -43,7 +43,7 @@ Name: lvm2 Version: 2.03.21 -Release: 21 +Release: 22 Epoch: 8 Summary: Tools for logical volume management License: GPLv2+ and LGPLv2.1 and BSD @@ -79,6 +79,7 @@ Patch27: 0027-vgsplit-fix-check-for-not-splitting-an-LV-between-tw.patch Patch28: 0028-vgsplit-fix-check-for-not-splitting-an-LV-between-tw.patch Patch29: 0029-add-internal-error-for-missing-vg.patch Patch30: 0030-enhance-pointer-safe.patch +Patch31: 0031-lvmdbusd-fix-python-script.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -505,6 +506,9 @@ fi %changelog +* Fri Nov 14 2025 weishuaihao - 8:2.03.21-22 +- lvmdbusd: Fix Python script + * Thu Nov 13 2025 weishuaihao - 8:2.03.21-21 - enhance pointer safe -- Gitee