- Drop patch 0001-multipath.rules.patch, multipath not ready yet.

OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=36
This commit is contained in:
Robert Milasan 2012-07-17 13:24:43 +00:00 committed by Git OBS Bridge
parent 006f2efce3
commit 7887691637
3 changed files with 8 additions and 37 deletions

View File

@ -1,35 +0,0 @@
Index: multipath-tools-0.4.9/multipath/multipath.rules
===================================================================
--- multipath-tools-0.4.9.orig/multipath/multipath.rules
+++ multipath-tools-0.4.9/multipath/multipath.rules
@@ -1,7 +1,25 @@
#
-# udev rules for multipathing.
-# The persistent symlinks are created with the kpartx rules
-#
+# multipath wants the devmaps presented as meaninglful device names
+# so name them after their devmap name
+SUBSYSTEM!="block", GOTO="end_mpath"
+
+ENV{MPATH_SBIN_PATH}="/sbin"
+TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin"
+
+ACTION=="add", ENV{DEVTYPE}!="partition", \
+ ENV{DM_MULTIPATH_DEVICE_PATH}!="1", \
+ PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -c $tempnode", \
+ ENV{DM_MULTIPATH_DEVICE_PATH}="1"
+
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DEVTYPE}!="partition", \
+ RUN+="/usr/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
+
+KERNEL!="dm-*", GOTO="end_mpath"
+ACTION!="change", GOTO="end_mpath"
+ENV{DM_UUID}=="mpath-?*|part[0-9]*-mpath-?*", OPTIONS+="link_priority=10"
+ENV{DM_UUID}!="mpath-?*", GOTO="end_mpath"
+ENV{DM_SUSPENDED}=="1", GOTO="end_mpath"
+ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath"
+RUN+="$env{MPATH_SBIN_PATH}/kpartx -a -p p $tempnode"
-# socket for uevents
-SUBSYSTEM=="block", RUN+="socket:/org/kernel/dm/multipath_event"
+LABEL="end_mpath"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 17 13:21:47 UTC 2012 - rmilasan@suse.com
- Drop patch 0001-multipath.rules.patch, multipath not ready yet.
-------------------------------------------------------------------
Tue Jul 17 12:43:43 UTC 2012 - rmilasan@suse.com

View File

@ -32,7 +32,8 @@ Group: System/Base
Source: multipath-tools-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: %{name}-%{version}-opensuse-12.2.diff.bz2
Patch1: 0001-multipath.rules.patch
# We can't use this yet, there is not yet proper support.
# Patch1: 0001-multipath.rules.patch
Patch2: 0002-fix-installation-of-multipath-rule.patch
%description
@ -74,7 +75,7 @@ Authors:
%prep
%setup -q -n multipath-tools-%{version}
%patch0 -p1
%patch1 -p1
# %patch1 -p1
%patch2 -p1
%build