From b7b34325a948878813787f7e76d1c7078da0c020 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 9 Jun 2016 19:04:43 +0000 Subject: [PATCH] Rename 'a' to set the active PMBR flag to 'A' --- sbin/gpt/biosboot.c | 10 +++++----- sbin/gpt/create.c | 8 ++++---- sbin/gpt/gpt.8 | 14 +++++++------- sbin/gpt/migrate.c | 8 ++++---- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sbin/gpt/biosboot.c b/sbin/gpt/biosboot.c index 12d96bc33368..09906ca35700 100644 --- a/sbin/gpt/biosboot.c +++ b/sbin/gpt/biosboot.c @@ -1,4 +1,4 @@ -/* $NetBSD: biosboot.c,v 1.25 2016/06/09 15:12:54 christos Exp $ */ +/* $NetBSD: biosboot.c,v 1.26 2016/06/09 19:04:43 christos Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ #include #ifdef __RCSID -__RCSID("$NetBSD: biosboot.c,v 1.25 2016/06/09 15:12:54 christos Exp $"); +__RCSID("$NetBSD: biosboot.c,v 1.26 2016/06/09 19:04:43 christos Exp $"); #endif #include @@ -68,7 +68,7 @@ __RCSID("$NetBSD: biosboot.c,v 1.25 2016/06/09 15:12:54 christos Exp $"); static int cmd_biosboot(gpt_t, int, char *[]); static const char *biosboothelp[] = { - "[-a] [-c bootcode] [-i index] [-L label]", + "[-A] [-c bootcode] [-i index] [-L label]", #if notyet "[-a alignment] [-b blocknr] [-i index] [-l label]", "[-s size] [-t type]", @@ -264,9 +264,9 @@ cmd_biosboot(gpt_t gpt, int argc, char *argv[]) uint8_t *label = NULL; char *bootpath = NULL; - while ((ch = getopt(argc, argv, "ac:i:L:")) != -1) { + while ((ch = getopt(argc, argv, "Ac:i:L:")) != -1) { switch(ch) { - case 'a': + case 'A': active = 1; break; case 'c': diff --git a/sbin/gpt/create.c b/sbin/gpt/create.c index 15308d12658a..4d036b9d3d0c 100644 --- a/sbin/gpt/create.c +++ b/sbin/gpt/create.c @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/create.c,v 1.11 2005/08/31 01:47:19 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: create.c,v 1.21 2016/06/09 15:12:54 christos Exp $"); +__RCSID("$NetBSD: create.c,v 1.22 2016/06/09 19:04:43 christos Exp $"); #endif #include @@ -55,7 +55,7 @@ __RCSID("$NetBSD: create.c,v 1.21 2016/06/09 15:12:54 christos Exp $"); static int cmd_create(gpt_t, int, char *[]); static const char *createhelp[] = { - "[-afP] [-p partitions]", + "[-AfP] [-p partitions]", }; struct gpt_cmd c_create = { @@ -130,9 +130,9 @@ cmd_create(gpt_t gpt, int argc, char *argv[]) int primary_only = 0; u_int parts = 128; - while ((ch = getopt(argc, argv, "afPp:")) != -1) { + while ((ch = getopt(argc, argv, "AfPp:")) != -1) { switch(ch) { - case 'a': + case 'A': active = 1; break; case 'f': diff --git a/sbin/gpt/gpt.8 b/sbin/gpt/gpt.8 index cb16a4ff18eb..a502ed7d481f 100644 --- a/sbin/gpt/gpt.8 +++ b/sbin/gpt/gpt.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: gpt.8,v 1.47 2016/06/09 16:48:14 kre Exp $ +.\" $NetBSD: gpt.8,v 1.48 2016/06/09 19:04:43 christos Exp $ .\" .\" Copyright (c) 2002 Marcel Moolenaar .\" All rights reserved. @@ -211,7 +211,7 @@ command. The format is a plist. It should not be modified. .\" ==== biosboot ==== -.It Nm Ic biosboot Oo Fl a Oc Oo Fl c Ar bootcode Oc Oo Fl i Ar index Oc \ +.It Nm Ic biosboot Oo Fl A Oc Oo Fl c Ar bootcode Oc Oo Fl i Ar index Oc \ Oo Fl L Ar label Oc The .Ic biosboot @@ -220,7 +220,7 @@ primary bootstrap program, used during .Xr boot 8 . .Pp The -.Fl a +.Fl A options sets the PMBR partition active. .Pp The @@ -242,7 +242,7 @@ option selects the partition by label. If there are multiple partitions with the same label, it will use the first one found. .\" ==== create ==== -.It Nm Ic create Oo Fl afP Oc Oo Fl p Ar partitions Oc +.It Nm Ic create Oo Fl AfP Oc Oo Fl p Ar partitions Oc The .Ic create command allows the user to create a new (empty) GPT. @@ -256,7 +256,7 @@ option is specified, an existing MBR is destroyed and any partitions described by the MBR are lost. .Pp The -.Fl a +.Fl A options sets the PMBR partition active. .Pp The @@ -351,7 +351,7 @@ The option is used to specify the label in the command line. The label is assumed to be encoded in UTF-8. .\" ==== migrate ==== -.It Nm Ic migrate Oo Fl afs Oc Oo Fl p Ar partitions Oc +.It Nm Ic migrate Oo Fl Afs Oc Oo Fl p Ar partitions Oc The .Ic migrate command allows the user to migrate an MBR-based disk partitioning into a @@ -367,7 +367,7 @@ option will cause unknown partitions to be ignored and any data in it to be lost. .Pp The -.Fl a +.Fl A options sets the PMBR partition active. .Pp The diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c index f5125e5f1048..6a2ef62d61df 100644 --- a/sbin/gpt/migrate.c +++ b/sbin/gpt/migrate.c @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/migrate.c,v 1.16 2005/09/01 02:42:52 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: migrate.c,v 1.31 2016/06/09 15:12:54 christos Exp $"); +__RCSID("$NetBSD: migrate.c,v 1.32 2016/06/09 19:04:43 christos Exp $"); #endif #include @@ -81,7 +81,7 @@ __RCSID("$NetBSD: migrate.c,v 1.31 2016/06/09 15:12:54 christos Exp $"); static int cmd_migrate(gpt_t, int, char *[]); static const char *migratehelp[] = { - "[-afs] [-p partitions]", + "[-Afs] [-p partitions]", }; struct gpt_cmd c_migrate = { @@ -332,9 +332,9 @@ cmd_migrate(gpt_t gpt, int argc, char *argv[]) u_int parts = 128; /* Get the migrate options */ - while ((ch = getopt(argc, argv, "afp:s")) != -1) { + while ((ch = getopt(argc, argv, "Afp:s")) != -1) { switch(ch) { - case 'a': + case 'A': active = 1; break; case 'f':