From 814918164bdd5bb54ca36f97d89201489a2b674d Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 1 Sep 2005 02:42:52 +0000 Subject: Dot the i's: multiple devices can be specified, so the usage should have ellipsis following the device. --- sbin/gpt/add.c | 2 +- sbin/gpt/migrate.c | 2 +- sbin/gpt/remove.c | 8 +++++--- 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, -- cgit v1.1