git: gpt(8): Improve '-s size' parsing and add '-a alignment' for "add" cmd
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 06:32:40 PST 2026
commit 392240c62cabe3e5a4471ac0a917ae006d51f9ca
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 | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
sbin/gpt/gpt.8 | 55 +++++++++++++++++--------
2 files changed, 159 insertions(+), 23 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/392240c62cabe3e5a4471ac0a917ae006d51f9ca
--
DragonFly BSD source repository
More information about the Commits
mailing list