From 72e9d4e81ba5bb8329d9623c5342fecd51c332836eed081750ef2db54216e451 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 20 Sep 2007 12:15:32 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/multipath-tools?expand=0&rev=7 --- multipath-tools-add-dm_linear | 29 ++++++++++++++++++----------- multipath-tools.changes | 5 +++++ multipath-tools.spec | 9 +++++---- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/multipath-tools-add-dm_linear b/multipath-tools-add-dm_linear index a02709e..add68b6 100644 --- a/multipath-tools-add-dm_linear +++ b/multipath-tools-add-dm_linear @@ -27,10 +27,10 @@ index d970d29..e6a7296 100644 rm -f core *.o $(EXEC) diff --git a/kpartx/activate_dm_linear b/kpartx/activate_dm_linear new file mode 100644 -index 0000000..ee5c9ed +index 0000000..7481bd4 --- /dev/null +++ b/kpartx/activate_dm_linear -@@ -0,0 +1,69 @@ +@@ -0,0 +1,76 @@ +#!/bin/sh +# +# activate_dm_linear @@ -80,14 +80,15 @@ index 0000000..ee5c9ed + ;; + esac +done -+if [ "$scsilink" ] ; then -+ serial="$scsilink" -+ bus="scsi" -+fi +if [ "$atalink" ] ; then + serial="$atalink" + bus="ata" +fi ++if [ "$scsilink" ] ; then ++ unset atalink ++ serial="$scsilink" ++ bus="scsi" ++fi +if [ "$serial" ]; then + # Remove existing rules + echo "/$serial/d @@ -96,13 +97,19 @@ index 0000000..ee5c9ed +" | ed $RULE > /dev/null 2>&1 + [ "$remove_only" = 1 ] && exit 0 + # And create a new one -+ cat >> $RULE <> $RULE <> $RULE <