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

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