git: kernel: Improve handling of disklabels in GPT partitions

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 18 05:49:13 PST 2026


commit e1ebf1b882d50ca2d04fa4b49d624c2b156f44c1
Author: Aaron LI <aly at aaronly.me>
Date:   Thu May 15 09:54:49 2025 +0800

    kernel: Improve handling of disklabels in GPT partitions
    
    Update gpt_setslice() to check the GPT partition types and then
    correctly set the 'sp->ds_type' field.  Therefore, disk_probe() will
    only call disk_probe_slice() for the GPT partitions that may actually
    have a disklabel inside.

Summary of changes:
 sys/kern/subr_disk.c    |  6 ++----
 sys/kern/subr_diskgpt.c | 20 +++++++++++++++++++-
 2 files changed, 21 insertions(+), 5 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list