Blame SOURCES/2.25-libblkid-gpt-512.patch
|
|
05ad79 |
diff -up util-linux-2.23.2/libblkid/src/partitions/gpt.c.kzak util-linux-2.23.2/libblkid/src/partitions/gpt.c
|
|
|
05ad79 |
--- util-linux-2.23.2/libblkid/src/partitions/gpt.c.kzak 2014-09-25 10:36:26.761377688 +0200
|
|
|
05ad79 |
+++ util-linux-2.23.2/libblkid/src/partitions/gpt.c 2014-09-25 10:36:56.912665364 +0200
|
|
|
05ad79 |
@@ -332,7 +332,7 @@ static int probe_gpt_pt(blkid_probe pr,
|
|
|
05ad79 |
|
|
|
05ad79 |
blkid_probe_use_wiper(pr, lba * blkid_probe_get_size(pr), 8);
|
|
|
05ad79 |
|
|
|
05ad79 |
- if (blkid_probe_set_magic(pr, lba << 9,
|
|
|
05ad79 |
+ if (blkid_probe_set_magic(pr, blkid_probe_get_sectorsize(pr) * lba,
|
|
|
05ad79 |
sizeof(GPT_HEADER_SIGNATURE_STR) - 1,
|
|
|
05ad79 |
(unsigned char *) GPT_HEADER_SIGNATURE_STR))
|
|
|
05ad79 |
goto err;
|
|
|
05ad79 |
@@ -345,7 +345,8 @@ static int probe_gpt_pt(blkid_probe pr,
|
|
|
05ad79 |
if (!ls)
|
|
|
05ad79 |
goto err;
|
|
|
05ad79 |
|
|
|
05ad79 |
- tab = blkid_partlist_new_parttable(ls, "gpt", lba << 9);
|
|
|
05ad79 |
+ tab = blkid_partlist_new_parttable(ls, "gpt",
|
|
|
05ad79 |
+ blkid_probe_get_sectorsize(pr) * lba);
|
|
|
05ad79 |
if (!tab)
|
|
|
05ad79 |
goto err;
|
|
|
05ad79 |
|