fix sanlk-reset -t command error.
Signed-off-by: cherry530 <xuping33@huawei.com> (cherry picked from commit 5b5c5cab206a4e3b0776ba9012ef761a27f924bc)
This commit is contained in:
parent
9b4858540a
commit
a86b9088d5
13
Add-sanlk-reset-command-t-options.patch
Normal file
13
Add-sanlk-reset-command-t-options.patch
Normal file
@ -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;
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: sanlock
|
Name: sanlock
|
||||||
Version: 3.8.4
|
Version: 3.8.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A shared storage lock manager
|
Summary: A shared storage lock manager
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
||||||
URL: https://pagure.io/sanlock/
|
URL: https://pagure.io/sanlock/
|
||||||
Source0: https://releases.pagure.org/sanlock/%{name}-%{version}.tar.gz
|
Source0: https://releases.pagure.org/sanlock/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch1: 0001-sanlock-fix-memory-leak-of-lockspace-renewal_history.patch
|
Patch1: 0001-sanlock-fix-memory-leak-of-lockspace-renewal_history.patch
|
||||||
|
Patch2: Add-sanlk-reset-command-t-options.patch
|
||||||
|
|
||||||
BuildRequires: libblkid-devel libaio-devel python3 python3-devel systemd-units gcc
|
BuildRequires: libblkid-devel libaio-devel python3 python3-devel systemd-units gcc
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
@ -152,6 +153,9 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 08 2023 xu_ping <xu_ping33@h-pattners.com> - 3.8.4-3
|
||||||
|
- fix sanlk-reset -t command error.
|
||||||
|
|
||||||
* Wed Oct 19 2022 lihaoxiang <lihaoxiang9@huawei.com> - 3.8.4-2
|
* Wed Oct 19 2022 lihaoxiang <lihaoxiang9@huawei.com> - 3.8.4-2
|
||||||
- sanlock:fix memory leak of lockspace renewal history
|
- sanlock:fix memory leak of lockspace renewal history
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user