Thread (1 message) 1 message, 1 author, 2016-12-12

Re: [PATCH] Use disk sector size value to set offset for reading GPT

From: Jes Sorensen <hidden>
Date: 2016-12-12 19:26:32

Mariusz Dabrowski [off-list ref] writes:
mdadm is using invalid byte-offset while reading GPT header to get
partition info (size, first sector, last sector etc.). Now this offset
is hardcoded to 512 bytes and it is not valid for disks with sector
size different than 512 bytes because MBR and GPT headers are aligned
to LBA, so valid offset for 4k drives is 4096 bytes.

Signed-off-by: Mariusz Dabrowski <redacted>
---
 super-gpt.c | 10 ++++++++++
 util.c      |  7 ++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
Applied!

Thanks,
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help