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