* [gentoo-commits] gentoo-x86 commit in sys-fs/multipath-tools/files: multipath-tools-0.4.8-kparted-ext-partitions.patch
@ 2009-11-05 4:15 Robin H. Johnson (robbat2)
0 siblings, 0 replies; only message in thread
From: Robin H. Johnson (robbat2) @ 2009-11-05 4:15 UTC (permalink / raw
To: gentoo-commits
robbat2 09/11/05 04:15:11
Added: multipath-tools-0.4.8-kparted-ext-partitions.patch
Log:
Bug #268961: kpartx fails on extended partitions, referencing the wrong parent device and offset.
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-fs/multipath-tools/files/multipath-tools-0.4.8-kparted-ext-partitions.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/files/multipath-tools-0.4.8-kparted-ext-partitions.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/files/multipath-tools-0.4.8-kparted-ext-partitions.patch?rev=1.1&content-type=text/plain
Index: multipath-tools-0.4.8-kparted-ext-partitions.patch
===================================================================
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-05 4:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-05 4:15 [gentoo-commits] gentoo-x86 commit in sys-fs/multipath-tools/files: multipath-tools-0.4.8-kparted-ext-partitions.patch Robin H. Johnson (robbat2)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox