diff options
author | Karel Zak | 2015-01-09 13:05:49 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-09 13:05:49 +0100 |
commit | 4bb82a455461e42644c9b3d8aa1206ad8889ed35 (patch) | |
tree | 49ef3dbe5f947a2fe31225cde66e69aecd56d772 /disk-utils/partx.c | |
parent | Merge branch 'master' of https://github.com/pali/util-linux (diff) | |
download | kernel-qcow2-util-linux-4bb82a455461e42644c9b3d8aa1206ad8889ed35.tar.gz kernel-qcow2-util-linux-4bb82a455461e42644c9b3d8aa1206ad8889ed35.tar.xz kernel-qcow2-util-linux-4bb82a455461e42644c9b3d8aa1206ad8889ed35.zip |
libfdisk: (gpt) cleanup header size usage
Kay reported that Windows 8.1 installed does not recognize GPT created
by libfdisk, but parted works as expected.
It seems (according to the header hexdump) that the problem is
HeaderSize GPT field where libfdisk uses 512 (header + reserved area),
but parted uses 92. The both is pretty valid according to the current
EFI standard, but 92 is probably more backwardly compatible.
I also found places in code where libfdisk gpt driver is inconsistent
and uses sometimes all sector and simetimes sizeof(gpt_header) only.
The right solution is to read all sector (into zeroized memory) and
later write again all sector to the device.
Reported-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/partx.c')
0 files changed, 0 insertions, 0 deletions