git: gpt(8): Change '-p' to be create/init/migrate command option
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 06:32:40 PST 2026
commit 481ab65ac2fb8ea366f400625ebab625f9dd6d16
Author: Aaron LI <aly at aaronly.me>
Date: Fri Aug 29 17:05:07 2025 +0800
gpt(8): Change '-p' to be create/init/migrate command option
The '-p' option was a generic and applied to all commands, but actually
only the "create", "init", "migrate" commands used it. So just change
it to be a command-specific command for these three commands.
In order to avoid conflict, rename the original '-p' option to '-P' for
the "create" command. This shouldn't cause any trouble, because this
option had been documented for debug purpose use.
Referred-to: NetBSD
Summary of changes:
sbin/gpt/create.c | 31 ++++++++++++++++++++++++++-----
sbin/gpt/gpt.8 | 37 +++++++++++++++++--------------------
sbin/gpt/gpt.c | 16 +++-------------
sbin/gpt/gpt.h | 1 -
sbin/gpt/migrate.c | 15 +++++++++++++--
5 files changed, 59 insertions(+), 41 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/481ab65ac2fb8ea366f400625ebab625f9dd6d16
--
DragonFly BSD source repository
More information about the Commits
mailing list