git: gpt(8): Support migration of DragonFly (0x6C) slice and disklabel64

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 18 06:32:42 PST 2026


commit 34111d69fe1c7b6078db798a619e6adada15db94
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jan 22 14:12:38 2026 +0800

    gpt(8): Support migration of DragonFly (0x6C) slice and disklabel64
    
    Since DragonFly used 386BSD (0xA5) slice in the past, we need to perform
    the same migration logic for 386BSD (0xA5) and DragonFly (0x6C) slices.
    Detect both disklabel64 and disklabel32 and migrate the partitions.

Summary of changes:
 sbin/gpt/gpt.8     |   8 +--
 sbin/gpt/migrate.c | 180 ++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 123 insertions(+), 65 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/34111d69fe1c7b6078db798a619e6adada15db94


-- 
DragonFly BSD source repository


More information about the Commits mailing list