Blame SOURCES/0008-RH-revert-partition-changes.patch

38852f
---
38852f
 kpartx/dos.c    |    2 --
38852f
 kpartx/kpartx.c |    9 ++++++---
38852f
 2 files changed, 6 insertions(+), 5 deletions(-)
38852f
38852f
Index: multipath-tools-130222/kpartx/dos.c
38852f
===================================================================
38852f
--- multipath-tools-130222.orig/kpartx/dos.c
38852f
+++ multipath-tools-130222/kpartx/dos.c
38852f
@@ -98,8 +98,6 @@ read_dos_pt(int fd, struct slice all, st
38852f
 			break;
38852f
 		}
38852f
 		if (is_extended(p.sys_type)) {
38852f
-			sp[i].size = 2; /* extended partitions only get two
38852f
-					   sectors mapped for LILO to install */
38852f
 			n += read_extended_partition(fd, &p, i, sp+n, ns-n);
38852f
 		}
38852f
 	}
38852f
Index: multipath-tools-130222/kpartx/kpartx.c
38852f
===================================================================
38852f
--- multipath-tools-130222.orig/kpartx/kpartx.c
38852f
+++ multipath-tools-130222/kpartx/kpartx.c
38852f
@@ -516,6 +516,7 @@ main(int argc, char **argv){
38852f
 			d = c;
38852f
 			while (c) {
38852f
 				for (j = 0; j < n; j++) {
38852f
+					uint64_t start;
38852f
 					int k = slices[j].container - 1;
38852f
 
38852f
 					if (slices[j].size == 0)
38852f
@@ -541,9 +542,11 @@ main(int argc, char **argv){
38852f
 					}
38852f
 					strip_slash(partname);
38852f
 
38852f
-					if (safe_sprintf(params, "%s %" PRIu64,
38852f
-							 device,
38852f
-							 slices[j].start)) {
38852f
+					start = slices[j].start - slices[k].start;
38852f
+					if (safe_sprintf(params, "%d:%d %" PRIu64,
38852f
+							 slices[k].major,
38852f
+							 slices[k].minor,
38852f
+							 start)) {
38852f
 						fprintf(stderr, "params too small\n");
38852f
 						exit(1);
38852f
 					}