From 3f41b6e73e2e52a259ff94f648407f3569458f43 Mon Sep 17 00:00:00 2001 From: cherry530 Date: Wed, 8 Mar 2023 14:57:02 +0800 Subject: [PATCH] Add sanlk-reset command -t options Signed-off-by: cherry530 (cherry picked from commit 71b6a63cf9f52e116a98a3b0e7147cfcf0d18b45) --- Add-sanlk-reset-command-t-options.patch | 13 +++++++++++++ sanlock.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Add-sanlk-reset-command-t-options.patch diff --git a/Add-sanlk-reset-command-t-options.patch b/Add-sanlk-reset-command-t-options.patch new file mode 100644 index 0000000..ef5752e --- /dev/null +++ b/Add-sanlk-reset-command-t-options.patch @@ -0,0 +1,13 @@ +diff --git a/reset/sanlk_reset.c b/reset/sanlk_reset.c +index 9e952ab..3453449 100644 +--- a/reset/sanlk_reset.c ++++ b/reset/sanlk_reset.c +@@ -717,7 +717,7 @@ int main(int argc, char *argv[]) + int c; + int option_index = 0; + +- c = getopt_long(argc, argv, "hVi:g:w:b:R:D", ++ c = getopt_long(argc, argv, "hVi:g:w:b:R:t:D", + long_options, &option_index); + if (c == -1) + break; diff --git a/sanlock.spec b/sanlock.spec index 71cd659..5c73415 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -1,10 +1,11 @@ Name: sanlock Version: 3.8.1 -Release: 2 +Release: 3 Summary: A shared storage lock manager License: GPLv2 and GPLv2+ and LGPLv2+ URL: https://pagure.io/sanlock/ Source0: https://releases.pagure.org/sanlock/%{name}-%{version}.tar.gz +Patch0: Add-sanlk-reset-command-t-options.patch BuildRequires: libblkid-devel libaio-devel python3 python3-devel systemd-units Requires(pre): shadow @@ -153,6 +154,9 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \ %changelog +* Wed Mar 08 2023 xu_ping - 3.8.1-3 +- Add sanlk-reset command -t options + * Mon Sep 6 2021 liyanan - 3.8.1-2 - Delete python2 sub-package and add python3 sub-package -- Gitee