Dot the i's: multiple devices can be specified, so the usage should
have ellipsis following the device.
This commit is contained in:
parent
9b54632324
commit
814918164b
@ -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);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ usage_migrate(void)
|
||||
{
|
||||
|
||||
fprintf(stderr,
|
||||
"usage: %s [-fs] device\n", getprogname());
|
||||
"usage: %s [-fs] device ...\n", getprogname());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user