diff options
author | Karel Zak <kzak@redhat.com> | 2009-10-22 14:52:39 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-10-22 14:52:39 +0200 |
commit | 2a1dfbad1c3da1c98fa35e3175e84229253af387 (patch) | |
tree | 26c4c81930dfee9069bf0e49eb4a815419aefa95 /lib/canonicalize.c | |
parent | d13fe35ca15acff029aafec56052a0b40edcaa63 (diff) | |
download | util-linux-old-2a1dfbad1c3da1c98fa35e3175e84229253af387.tar.gz |
libblkid: use BLKSSZGET for GPT sectors
The current implementation uses fixed sector size (512 bytes), that's
wrong. UEFI standard requires real logical sector size -- it means
BLKSSZGET for Linux.
The size of GPT header is not static, but whole sector is allocated
for the header. In theory the HeaderSize field could be greater than
sizeof(struct gpt_header). It means we have to read whole sector with
the header, because the header crc32 checksum is counted according to
HeaderSize.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/canonicalize.c')
0 files changed, 0 insertions, 0 deletions