From 12917067990de3a976e7a1a5abfbe28891216c77 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sep 15 2015 11:43:33 +0000 Subject: import device-mapper-multipath-0.4.9-77.el7_1.1 --- diff --git a/SOURCES/0106-RHBZ-1212590-dont-use-var.patch b/SOURCES/0106-RHBZ-1212590-dont-use-var.patch new file mode 100644 index 0000000..8009073 --- /dev/null +++ b/SOURCES/0106-RHBZ-1212590-dont-use-var.patch @@ -0,0 +1,33 @@ +--- + libmultipath/defaults.h | 4 ++-- + multipathd/multipathd.service | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +Index: multipath-tools-130222/libmultipath/defaults.h +=================================================================== +--- multipath-tools-130222.orig/libmultipath/defaults.h ++++ multipath-tools-130222/libmultipath/defaults.h +@@ -25,8 +25,8 @@ + #define MAX_CHECKINT(a) (a << 2) + + #define MAX_DEV_LOSS_TMO 0x7FFFFFFF +-#define DEFAULT_PIDFILE "/var/run/multipathd/multipathd.pid" +-#define DEFAULT_TIMESTAMP_FILE "/var/run/multipathd/timestamp" ++#define DEFAULT_PIDFILE "/run/multipathd/multipathd.pid" ++#define DEFAULT_TIMESTAMP_FILE "/run/multipathd/timestamp" + #define DEFAULT_SOCKET "/org/kernel/linux/storage/multipathd" + #define DEFAULT_CONFIGFILE "/etc/multipath.conf" + #define DEFAULT_BINDINGS_FILE "/etc/multipath/bindings" +Index: multipath-tools-130222/multipathd/multipathd.service +=================================================================== +--- multipath-tools-130222.orig/multipathd/multipathd.service ++++ multipath-tools-130222/multipathd/multipathd.service +@@ -9,7 +9,7 @@ Conflicts=shutdown.target + + [Service] + Type=forking +-PIDFile=/var/run/multipathd/multipathd.pid ++PIDFile=/run/multipathd/multipathd.pid + ExecStartPre=/sbin/modprobe dm-multipath + ExecStartPre=-/sbin/multipath -A + ExecStart=/sbin/multipathd diff --git a/SPECS/device-mapper-multipath.spec b/SPECS/device-mapper-multipath.spec index 790e686..e87923c 100644 --- a/SPECS/device-mapper-multipath.spec +++ b/SPECS/device-mapper-multipath.spec @@ -1,7 +1,7 @@ Summary: Tools to manage multipath devices using device-mapper Name: device-mapper-multipath Version: 0.4.9 -Release: 77%{?dist} +Release: 77%{?dist}.1 License: GPL+ Group: System Environment/Base URL: http://christophe.varoqui.free.fr/ @@ -113,6 +113,7 @@ Patch0102: 0102-RHBZ-631009-deferred-remove.patch Patch0103: 0103-RHBZ-1148979-fix-partition-mapping-creation-race-with-kpartx.patch Patch0104: 0104-RHBZ-1159337-fix-double-free.patch Patch0105: 0105-RHBZ-1180032-find-multipaths-man.patch +Patch0106: 0106-RHBZ-1212590-dont-use-var.patch # runtime Requires: %{name}-libs = %{version}-%{release} @@ -270,6 +271,7 @@ kpartx manages partition creation and removal for device-mapper devices. %patch0103 -p1 %patch0104 -p1 %patch0105 -p1 +%patch0106 -p1 cp %{SOURCE1} . %build @@ -364,6 +366,11 @@ bin/systemctl --no-reload enable multipathd.service >/dev/null 2>&1 ||: %{_mandir}/man8/kpartx.8.gz %changelog +* Thu Jul 30 2015 Benjamin Marzinski 0.4.9-77.1 +- Add 0106-RHBZ-1212590-dont-use-var.patch + * use /run instead of /var/run +- Resolves: bz #1248386 + * Fri Jan 9 2015 Benjamin Marzinski 0.4.9-77 - Add 0105-RHBZ-1180032-find-multipaths-man.patch * add find_multipaths to man page