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