git: fdisk(8): Support 4096 sector size and recognize pMBR of 4Kn disks

Aaron LI aly at crater.dragonflybsd.org
Sat May 10 00:53:41 PDT 2025


commit 6fb103213fb1964a714acb88330e9848dbc6ff58
Author: Aaron LI <aly at aaronly.me>
Date:   Sat May 10 15:47:53 2025 +0800

    fdisk(8): Support 4096 sector size and recognize pMBR of 4Kn disks
    
    Tweak the fdisk(8) utility to support 4096-byte sector size, so it now
    can read the pMBR on GPT-formatted 4Kn (aka 4K native) disks, e.g.,
    
         # fdisk -s vbd0
         /dev/vbd0: 14628 cyl 16 hd 56 sec
         Part        Start        Size Type Flags
            1:           1    13107199 0xee 0x00
    
    In addition, tweak read_disk() to report the read error message.

Summary of changes:
 sbin/fdisk/fdisk.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6fb103213fb1964a714acb88330e9848dbc6ff58


-- 
DragonFly BSD source repository


More information about the Commits mailing list