aboutsummaryrefslogtreecommitdiff
path: root/sbin/tunefs/tunefs.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1998-08-03 06:41:20 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1998-08-03 06:41:20 +0000
commit8679b1b4d8a7c79b6afeedaee07fd711578a190e (patch)
treef45913d22a7dbd704270d3cbf66656ebf2dbdff0 /sbin/tunefs/tunefs.c
parente798a806ce264c12611e0573c1ce4fc1a0998556 (diff)
downloadsrc-8679b1b4d8a7c79b6afeedaee07fd711578a190e.tar.gz
src-8679b1b4d8a7c79b6afeedaee07fd711578a190e.zip
Document -n (soft-update) flag.
Add rcsid, remove unused #includes. Sync usage() and SYNOPSIS.
Notes
Notes: svn path=/head/; revision=38040
Diffstat (limited to 'sbin/tunefs/tunefs.c')
-rw-r--r--sbin/tunefs/tunefs.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index b1df99b324c9..682c6e2fc4f3 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -32,13 +32,17 @@
*/
#ifndef lint
-static char copyright[] =
+static const char copyright[] =
"@(#) Copyright (c) 1983, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
/*
@@ -49,12 +53,11 @@ static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94";
#include <ufs/ffs/fs.h>
-#include <errno.h>
#include <err.h>
#include <fcntl.h>
#include <fstab.h>
-#include <stdio.h>
#include <paths.h>
+#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -248,16 +251,10 @@ again:
void
usage()
{
-
- fprintf(stderr, "usage: tunefs tuneup-options special-device\n");
- fprintf(stderr, "where tuneup-options are:\n");
- fprintf(stderr, "\t-a maximum contiguous blocks\n");
- fprintf(stderr, "\t-d rotational delay between contiguous blocks\n");
- fprintf(stderr, "\t-e maximum blocks per file in a cylinder group\n");
- fprintf(stderr, "\t-m minimum percentage of free space\n");
- fprintf(stderr, "\t-n soft updates (`enable' or `disable')\n");
- fprintf(stderr, "\t-o optimization preference (`space' or `time')\n");
- fprintf(stderr, "\t-p no change - just prints current tuneable settings\n");
+ fprintf(stderr, "%s\n%s\n%s\n",
+"usage: tunefs [-A] [-a maxcontig] [-d rotdelay] [-e maxbpg] [-m minfree]",
+" [-p] [-n enable | disable] [-o optimize_preference]",
+" [special | filesystem]");
exit(2);
}