multipath fix exit status of multipath -T
We must set the return value in configure(). Signed-off-by: xueyamao <xueyamao@kylinos.cn>
This commit is contained in:
parent
b68fc8b7d9
commit
d3b45029ab
28
0017-multipath-fix-exit-status-of-multipath-T.patch
Normal file
28
0017-multipath-fix-exit-status-of-multipath-T.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From c9c063b6cef7c922fb5b509bd59c597fa1f673d6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Martin Wilck <mwilck@suse.com>
|
||||||
|
Date: Fri, 22 Oct 2021 12:58:11 +0200
|
||||||
|
Subject: [PATCH] multipath: fix exit status of multipath -T
|
||||||
|
|
||||||
|
We must set the return value in configure().
|
||||||
|
|
||||||
|
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
||||||
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
||||||
|
---
|
||||||
|
multipath/main.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/multipath/main.c b/multipath/main.c
|
||||||
|
index 743f3e0..e964792 100644
|
||||||
|
--- a/multipath/main.c
|
||||||
|
+++ b/multipath/main.c
|
||||||
|
@@ -560,6 +560,7 @@ configure (struct config *conf, enum mpath_cmds cmd,
|
||||||
|
|
||||||
|
dump_config(conf, hwes, curmp);
|
||||||
|
vector_free(hwes);
|
||||||
|
+ r = RTVL_OK;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#needsrootforbuild
|
#needsrootforbuild
|
||||||
Name: multipath-tools
|
Name: multipath-tools
|
||||||
Version: 0.8.7
|
Version: 0.8.7
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Tools to manage multipath devices with the device-mapper
|
Summary: Tools to manage multipath devices with the device-mapper
|
||||||
License: GPL-2.0-or-later and LGPL-2.0-only
|
License: GPL-2.0-or-later and LGPL-2.0-only
|
||||||
URL: http://christophe.varoqui.free.fr/
|
URL: http://christophe.varoqui.free.fr/
|
||||||
@ -25,7 +25,7 @@ Patch13: 0013-kpartx-change-kpartx-file-and-default-bindir.patch
|
|||||||
Patch14: 0014-remove-local-disk-from-pathvec.patch
|
Patch14: 0014-remove-local-disk-from-pathvec.patch
|
||||||
Patch15: 0015-clear-mpp-path-reference-when-path-is-freed-otherwis.patch
|
Patch15: 0015-clear-mpp-path-reference-when-path-is-freed-otherwis.patch
|
||||||
Patch16: 0016-multipath-return-failure-on-an-invalid-remove-cmd.patch
|
Patch16: 0016-multipath-return-failure-on-an-invalid-remove-cmd.patch
|
||||||
|
Patch17: 0017-multipath-fix-exit-status-of-multipath-T.patch
|
||||||
BuildRequires: multipath-tools, libcmocka, libcmocka-devel
|
BuildRequires: multipath-tools, libcmocka, libcmocka-devel
|
||||||
BuildRequires: gcc, libaio-devel, userspace-rcu-devel, device-mapper-devel >= 1.02.89
|
BuildRequires: gcc, libaio-devel, userspace-rcu-devel, device-mapper-devel >= 1.02.89
|
||||||
BuildRequires: libselinux-devel, libsepol-devel, readline-devel, ncurses-devel,
|
BuildRequires: libselinux-devel, libsepol-devel, readline-devel, ncurses-devel,
|
||||||
@ -171,6 +171,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 2 2022 xueyamao<xueyamao@kylinos.cn> - 0.8.7-4
|
||||||
|
- multipath fix exit status of multipath -T
|
||||||
|
|
||||||
* Wed Aug 31 2022 xueyamao<xueyamao@kylinos.cn> - 0.8.7-3
|
* Wed Aug 31 2022 xueyamao<xueyamao@kylinos.cn> - 0.8.7-3
|
||||||
- fix multipath return failure on an invalid remove command
|
- fix multipath return failure on an invalid remove command
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user