git: mount(8): Detect known filesystem types in raw GPT partitions
Aaron LI
aly at crater.dragonflybsd.org
Fri Oct 2 05:08:16 PDT 2026
commit 1cb32eba459f9449dad10687c4886a4217ac9c19
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/1cb32eba459f9449dad10687c4886a4217ac9c19
--
DragonFly BSD source repository
More information about the Commits
mailing list