git: gpt(8): Read secondary GPT from position stored in the primary header
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 06:32:43 PST 2026
commit 9f19c3e4215f952d8d7d8529e99af3292794f75d
Author: Aaron LI <aly at aaronly.me>
Date: Thu Jan 22 23:17:52 2026 +0800
gpt(8): Read secondary GPT from position stored in the primary header
When the primary GPT is found, read the secondary GPT from the position
stored in the primary header, rather than assuming the end of the disk.
Meanwhile, add error messages for gpt_read() failures.
Obtained-from: NetBSD
Summary of changes:
sbin/gpt/gpt.c | 49 +++++++++++++++++++++++++++++++++++++------------
1 file changed, 37 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f19c3e4215f952d8d7d8529e99af3292794f75d
--
DragonFly BSD source repository
More information about the Commits
mailing list