git: gpt(8): Add warnings about invalid partition LBA range

Aaron LI aly at crater.dragonflybsd.org
Sun Sep 27 01:00:57 PDT 2026


commit fb80821f7736126adc7bf29baa6d69d0c8c7921d
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Sep 27 14:38:53 2026 +0800

    gpt(8): Add warnings about invalid partition LBA range
    
    * Check the partition LBA range against the disk's usuable LBA range and
      warn the invalid LBA ranges.  This helps catch errors in GPT header
      (e.g., the hdr_lba_end) and table.
    
    * Add a verbose message printing the disk's usuable LBA range.
    
    * Don't hide the CRC errors behind the verbose flag.
    
    Bugs: #3276, #3423

Summary of changes:
 sbin/gpt/gpt.c | 50 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fb80821f7736126adc7bf29baa6d69d0c8c7921d


-- 
DragonFly BSD source repository


More information about the Commits mailing list