git: DragonFly_RELEASE_6_4 gpt(8): Improve '-s size' parsing and add '-a alignment' for "add" cmd

Aaron LI aly at crater.dragonflybsd.org
Sat Feb 21 17:07:06 PST 2026


commit d6a39f68d6b00c8d414cf938c332f18d1f337de2
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Sep 1 09:54:40 2025 +0800

    gpt(8): Improve '-s size' parsing and add '-a alignment' for "add" cmd
    
    * Improve the '-s' size parsing to accept the following suffixes:
      - s, S: sectors
      - b, B: bytes
      - k, K: KB
      - m, M: MB
      - g, G: GB
      - t, T: TB
      - p, P: PB
    * Add the '-a' option to specify a custom alignment for partition size
      and position.
    
    Referred-to: NetBSD

Summary of changes:
 sbin/gpt/add.c | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
 sbin/gpt/gpt.8 |  55 +++++++++++++++++-------
 2 files changed, 161 insertions(+), 25 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list