git: gpt(8): Refactor migrate_disklabel() to prepare disklabel64 support

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


commit 341b62934d622063ddce0ce941f4cb0b8a2a5116
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jan 22 10:21:22 2026 +0800

    gpt(8): Refactor migrate_disklabel() to prepare disklabel64 support
    
    - Refactor migrate_disklabel() into read_disklabel32() and
      migrate_disklabel32().  This allows us for easier adding disklabel64
      support.
    - Free the gpt_read() returned buffer after use.
    - Add a comment explaining the 'rowofs' determination.

Summary of changes:
 sbin/gpt/migrate.c | 47 +++++++++++++++++++++++++++++++++++------------
 1 file changed, 35 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/341b62934d622063ddce0ce941f4cb0b8a2a5116


-- 
DragonFly BSD source repository


More information about the Commits mailing list