aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-11-01 11:05:26 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-11-01 11:05:40 +0000
commitc4fdd261576494d39f4a8ec5eba83f4c9783adc9 (patch)
treec866d32b33660a3146564c860f3f6d1ac6246d8c /main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch
parent0d8cb20c55849b5054bba180a9db7e1a6978ecce (diff)
downloadaports-c4fdd261576494d39f4a8ec5eba83f4c9783adc9.tar.bz2
aports-c4fdd261576494d39f4a8ec5eba83f4c9783adc9.tar.xz
testing/multipath-tools: move to main
Diffstat (limited to 'main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch')
-rw-r--r--main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch b/main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch
new file mode 100644
index 0000000000..3f70fd70e4
--- /dev/null
+++ b/main/multipath-tools/multipath-tools-0.4.8-kparted-ext-partitions.patch
@@ -0,0 +1,28 @@
+From c421c9282791696264d1333fb2552835140354c3 Mon Sep 17 00:00:00 2001
+From: Robin H. Johnson <robbat2@gentoo.org>
+Date: Thu, 5 Nov 2009 03:44:12 +0000
+Subject: [PATCH] kpartx: Fix broken calculation of extended partitions that caused random devices to be used instead of the correct parent device.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+---
+ kpartx/dos.c | 4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/kpartx/dos.c b/kpartx/dos.c
+index 1691105..317fc56 100644
+--- a/kpartx/dos.c
++++ b/kpartx/dos.c
+@@ -53,7 +53,9 @@ read_extended_partition(int fd, struct partition *ep, int en,
+ if (n < ns) {
+ sp[n].start = here + le32_to_cpu(p.start_sect);
+ sp[n].size = le32_to_cpu(p.nr_sects);
+- sp[n].container = en + 1;
++ // This line seems to have no understandable
++ // purpose, and causes the wrong device to be used
++ //sp[n].container = en + 1;
+ n++;
+ } else {
+ fprintf(stderr,
+--
+1.6.4
+