device-mapper-multipath-0.7.6-3.git1cb704b

Add 0008-multipathd-add-failures-path-format-wildcard.patch
Add 0009-multipathd-fix-reservation_key-check.patch
Rename files
  * Previous patches 0008-0015 are now patches 0010-0017
This commit is contained in:
Benjamin Marzinski 2018-04-24 15:54:32 -05:00
parent 47d132054e
commit 938e745304
11 changed files with 89 additions and 10 deletions

View File

@ -0,0 +1,40 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Benjamin Marzinski <bmarzins@redhat.com>
Date: Thu, 19 Apr 2018 17:36:56 -0500
Subject: [PATCH] multipathd: add failures path format wildcard
multipath already tracks this, so it should be able to print it out.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
libmultipath/print.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libmultipath/print.c b/libmultipath/print.c
index d532994..b1844c9 100644
--- a/libmultipath/print.c
+++ b/libmultipath/print.c
@@ -632,6 +632,12 @@ snprint_path_foreign (char * buff, size_t len, const struct path * pp)
return snprintf(buff, len, "%s", "--");
}
+static int
+snprint_path_failures(char * buff, size_t len, const struct path * pp)
+{
+ return snprint_int(buff, len, pp->failcount);
+}
+
struct multipath_data mpd[] = {
{'n', "name", 0, snprint_name},
{'w', "uuid", 0, snprint_multipath_uuid},
@@ -680,6 +686,7 @@ struct path_data pd[] = {
{'r', "target WWPN", 0, snprint_tgt_wwpn},
{'a', "host adapter", 0, snprint_host_adapter},
{'G', "foreign", 0, snprint_path_foreign},
+ {'0', "failures", 0, snprint_path_failures},
{0, NULL, 0 , NULL}
};
--
2.7.4

View File

@ -0,0 +1,29 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Benjamin Marzinski <bmarzins@redhat.com>
Date: Mon, 23 Apr 2018 17:53:02 -0500
Subject: [PATCH] multipathd: fix reservation_key check
mpath_pr_event_handle should exit if the reservation key is zero, not
non-zero.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
multipathd/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 841d3e9..84af946 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -3136,7 +3136,7 @@ int mpath_pr_event_handle(struct path *pp)
mpp = pp->mpp;
- if (get_be64(mpp->reservation_key))
+ if (!get_be64(mpp->reservation_key))
return -1;
pthread_attr_init(&attr);
--
2.7.4

View File

@ -127,7 +127,7 @@ index baf6759..12d6f15 100644
fprintf(stderr, "need to be root\n");
exit(1);
diff --git a/multipathd/main.c b/multipathd/main.c
index 841d3e9..417fc7e 100644
index 84af946..b3f319a 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2323,7 +2323,8 @@ configure (struct vectors * vecs)

View File

@ -1,7 +1,7 @@
Summary: Tools to manage multipath devices using device-mapper
Name: device-mapper-multipath
Version: 0.7.6
Release: 2.git1cb704b%{?dist}
Release: 3.git1cb704b%{?dist}
License: GPL+
Group: System Environment/Base
URL: http://christophe.varoqui.free.fr/
@ -18,14 +18,16 @@ Patch0004: 0004-multipathd-remove-unneeded-function-parameter.patch
Patch0005: 0005-mpathcmd-fix-libmpathcmd-license.patch
Patch0006: 0006-libmultipath-don-t-print-undefined-values.patch
Patch0007: 0007-libmultipath-Fix-logic-in-should_multipath.patch
Patch0008: 0008-RH-fixup-udev-rules-for-redhat.patch
Patch0009: 0009-RH-Remove-the-property-blacklist-exception-builtin.patch
Patch0010: 0010-RH-don-t-start-without-a-config-file.patch
Patch0011: 0011-RH-use-rpm-optflags-if-present.patch
Patch0012: 0012-RH-add-mpathconf.patch
Patch0013: 0013-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch
Patch0014: 0014-RH-trigger-change-uevent-on-new-device-creation.patch
Patch0015: 0015-RH-warn-on-invalid-regex-instead-of-failing.patch
Patch0008: 0008-multipathd-add-failures-path-format-wildcard.patch
Patch0009: 0009-multipathd-fix-reservation_key-check.patch
Patch0010: 0010-RH-fixup-udev-rules-for-redhat.patch
Patch0011: 0011-RH-Remove-the-property-blacklist-exception-builtin.patch
Patch0012: 0012-RH-don-t-start-without-a-config-file.patch
Patch0013: 0013-RH-use-rpm-optflags-if-present.patch
Patch0014: 0014-RH-add-mpathconf.patch
Patch0015: 0015-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch
Patch0016: 0016-RH-trigger-change-uevent-on-new-device-creation.patch
Patch0017: 0017-RH-warn-on-invalid-regex-instead-of-failing.patch
# runtime
Requires: %{name}-libs = %{version}-%{release}
@ -119,6 +121,8 @@ device-mapper-multipath's libdmmp C API library
%patch0013 -p1
%patch0014 -p1
%patch0015 -p1
%patch0016 -p1
%patch0017 -p1
cp %{SOURCE1} .
%build
@ -242,6 +246,12 @@ fi
%{_pkgconfdir}/libdmmp.pc
%changelog
* Tue Apr 24 2018 Benjamin Marzinski <bmarzins@redhat.com> 0.7.6-3.git1cb704b
- Add 0008-multipathd-add-failures-path-format-wildcard.patch
- Add 0009-multipathd-fix-reservation_key-check.patch
- Rename files
* Previous patches 0008-0015 are now patches 0010-0017
* Fri Apr 13 2018 Benjamin Marzinski <bmarzins@redhat.com> 0.7.6-2.git1cb704b
- Add 0007-libmultipath-Fix-logic-in-should_multipath.patch
* fix bug in identifying multipathable devices. posted upstream