git: DragonFly_RELEASE_6_4 mount(8): Detect known filesystem types in raw GPT partitions

Aaron LI aly at crater.dragonflybsd.org
Fri Oct 2 05:11:00 PDT 2026


commit c76ea5694893d010bb351972ef51817d31f45082
Author: David Bidner <david at crap.solutions>
Date:   Fri Oct 2 19:55:59 2026 +0800

    mount(8): Detect known filesystem types in raw GPT partitions
    
    mount(8) previously only guessed the filesystem from the disklabel
    fstype.  DIOCGPART already puts the GPT partition type UUID in
    partinfo.fstype_uuid, but mount(8) never looked at it.  A raw GPT
    partition has fstype 0, so mount(8) would warn and fall back to ufs.
    
    Update checkdisklabel() to look the fstype_uuid up in a table of known
    GPT partition types (EFI -> msdos, the DragonFly/FreeBSD native types ->
    ufs/hammer/hammer2) if the disklabel fstype does not map.  Unknown GPT
    partition types keep the old warning and ufs fallback.
    
    Bug: #3401

Summary of changes:
 sbin/mount/mount.c | 55 ++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 43 insertions(+), 12 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list