summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-09-01 02:42:52 +0000
committermarcel <marcel@FreeBSD.org>2005-09-01 02:42:52 +0000
commit814918164bdd5bb54ca36f97d89201489a2b674d (patch)
treee4ffaf5f9dbea084ba83063c57dd55c0f749757f /sbin
parent9b54632324bab1e5330bfac99006793e6f29912b (diff)
downloadFreeBSD-src-814918164bdd5bb54ca36f97d89201489a2b674d.zip
FreeBSD-src-814918164bdd5bb54ca36f97d89201489a2b674d.tar.gz
Dot the i's: multiple devices can be specified, so the usage should
have ellipsis following the device.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gpt/add.c2
-rw-r--r--sbin/gpt/migrate.c2
-rw-r--r--sbin/gpt/remove.c8
3 files changed, 7 insertions, 5 deletions
diff --git a/sbin/gpt/add.c b/sbin/gpt/add.c
index 1337cf6..3b60720 100644
--- a/sbin/gpt/add.c
+++ b/sbin/gpt/add.c
@@ -48,7 +48,7 @@ usage_add(void)
{
fprintf(stderr,
- "usage: %s [-b lba] [-i index] [-s lba] [-t uuid] device\n",
+ "usage: %s [-b lba] [-i index] [-s lba] [-t uuid] device ...\n",
getprogname());
exit(1);
}
diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c
index fb36d7a..8f3b4ec 100644
--- a/sbin/gpt/migrate.c
+++ b/sbin/gpt/migrate.c
@@ -59,7 +59,7 @@ usage_migrate(void)
{
fprintf(stderr,
- "usage: %s [-fs] device\n", getprogname());
+ "usage: %s [-fs] device ...\n", getprogname());
exit(1);
}
diff --git a/sbin/gpt/remove.c b/sbin/gpt/remove.c
index 98b1d4d..500dd4d 100644
--- a/sbin/gpt/remove.c
+++ b/sbin/gpt/remove.c
@@ -49,8 +49,8 @@ usage_remove(void)
{
fprintf(stderr,
- "usage: %s -a device\n"
- " %s [-b lba] [-i index] [-s lba] [-t uuid] device\n",
+ "usage: %s -a device ...\n"
+ " %s [-b lba] [-i index] [-s lba] [-t uuid] device ...\n",
getprogname(), getprogname());
exit(1);
}
@@ -108,7 +108,7 @@ rem(int fd)
!uuid_equal(&type, &uuid, NULL))
continue;
- /* Remove the entry by clearing the partition type. */
+ /* Remove the primary entry by clearing the partition type. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
@@ -122,6 +122,8 @@ rem(int fd)
hdr = tpg->map_data;
ent = (void*)((char*)lbt->map_data + i *
le32toh(hdr->hdr_entsz));
+
+ /* Remove the secundary entry. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,
OpenPOWER on IntegriCloud