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

Aaron LI aly at crater.dragonflybsd.org
Mon Feb 2 05:16:08 PST 2026


commit 418fae5de9ff4c38cc394f8820d06eee4d4827bf
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 | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/418fae5de9ff4c38cc394f8820d06eee4d4827bf


-- 
DragonFly BSD source repository


More information about the Commits mailing list