git: gpt(8): Improve GPT table partitions reading logic

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 18 06:32:43 PST 2026


commit 58bad2c18e41af812960e45967a7163adc4832c9
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jan 23 00:23:43 2026 +0800

    gpt(8): Improve GPT table partitions reading logic
    
    The old code only tried to read the secondary GPT header, but didn't try
    to read the partitions from the secondary GPT table.  The updated code
    will try that so it could work in the case when there is no the primary
    GPT but the secondary GPT.

Summary of changes:
 sbin/gpt/gpt.c | 73 +++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 49 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/58bad2c18e41af812960e45967a7163adc4832c9


-- 
DragonFly BSD source repository


More information about the Commits mailing list