Blame SOURCES/0014-RH-handle-other-sector-sizes.patch

671555
---
671555
 kpartx/gpt.c |    9 ++++++---
671555
 1 file changed, 6 insertions(+), 3 deletions(-)
671555
671555
Index: multipath-tools-120821/kpartx/gpt.c
671555
===================================================================
671555
--- multipath-tools-120821.orig/kpartx/gpt.c
671555
+++ multipath-tools-120821/kpartx/gpt.c
671555
@@ -637,6 +637,7 @@ read_gpt_pt (int fd, struct slice all, s
671555
 	uint32_t i;
671555
 	int n = 0;
671555
         int last_used_index=-1;
671555
+	int sector_size_mul = get_sector_size(fd)/512;
671555
 
671555
 	if (!find_valid_gpt (fd, &gpt, &ptes) || !gpt || !ptes) {
671555
 		if (gpt)
671555
@@ -652,9 +653,11 @@ read_gpt_pt (int fd, struct slice all, s
671555
 			sp[n].size = 0;
671555
 			n++;
671555
 		} else {
671555
-			sp[n].start = __le64_to_cpu(ptes[i].starting_lba);
671555
-			sp[n].size  = __le64_to_cpu(ptes[i].ending_lba) -
671555
-				__le64_to_cpu(ptes[i].starting_lba) + 1;
671555
+			sp[n].start = sector_size_mul *
671555
+				      __le64_to_cpu(ptes[i].starting_lba);
671555
+			sp[n].size  = sector_size_mul *
671555
+				      (__le64_to_cpu(ptes[i].ending_lba) -
671555
+				       __le64_to_cpu(ptes[i].starting_lba) + 1);
671555
                         last_used_index=n;
671555
 			n++;
671555
 		}