summaryrefslogtreecommitdiff
path: root/sbin/tunefs
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-05-02 20:16:14 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-05-02 20:16:14 +0000
commit7d08245eab377b8dbef5164aae3a0f22e5a92160 (patch)
treedb2ca1e1844c449a36f58945e7bafb9079a885c4 /sbin/tunefs
parent3e1e7571c35d0e03bdab7c12c97d7a42e2b91e81 (diff)
convert to standard usage(); ok millert otto
Diffstat (limited to 'sbin/tunefs')
-rw-r--r--sbin/tunefs/tunefs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 2de1fbed83a..b0735fe519c 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -266,14 +266,14 @@ getnum(const char *num, const char *desc, int min, int max)
static void
usage(void)
{
+ extern char *__progname;
+
+ fprintf(stderr,
+ "usage: %s [-AFN] [-e maxbpg] [-g avgfilesize] "
+ "[-h avgfpdir] [-m minfree]\n"
+ "\t[-o optimize_preference] special | filesys\n",
+ __progname);
- fprintf(stderr, "usage: tunefs [-AFN] tuneup-options special-device\n"
- "where tuneup-options are:\n"
- "\t-e maximum blocks per file in a cylinder group\n"
- "\t-g average file size\n"
- "\t-h expected number of files per directory\n"
- "\t-m minimum percentage of free space\n"
- "\t-o optimization preference (`space' or `time')\n");
exit(2);
}