aboutsummaryrefslogtreecommitdiff
path: root/sbin/tunefs
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-10-15 15:30:55 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-10-15 15:30:55 +0000
commita2325efeb1d7ffcb11aaac271bafdf1e60dbb32a (patch)
tree15d8a7173c3ffa1347e1fb816f63324ed11a9a56 /sbin/tunefs
parent75e861d635d4b39ef6abb0984da6c464ad52b17c (diff)
downloadsrc-a2325efeb1d7ffcb11aaac271bafdf1e60dbb32a.tar.gz
src-a2325efeb1d7ffcb11aaac271bafdf1e60dbb32a.zip
Correct some of the style problems in this file:
I introduced a style problem when I sorted 'a' before 'A'; our preferred order sorts 'A' first. Correct. Use .Cm instead of .Ar. Submitted by: bde
Notes
Notes: svn path=/head/; revision=105156
Diffstat (limited to 'sbin/tunefs')
-rw-r--r--sbin/tunefs/tunefs.88
-rw-r--r--sbin/tunefs/tunefs.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/sbin/tunefs/tunefs.8 b/sbin/tunefs/tunefs.8
index d7832daee3af..b8c8a1dd1583 100644
--- a/sbin/tunefs/tunefs.8
+++ b/sbin/tunefs/tunefs.8
@@ -40,11 +40,11 @@
.Nd tune up an existing file system
.Sh SYNOPSIS
.Nm
-.Op Fl a Cm enable | disable
.Op Fl A
+.Op Fl a Cm enable | disable
.Op Fl e Ar maxbpg
.Op Fl f Ar avgfilesize
-.Op Fl l Ar enable | disable
+.Op Fl l Cm enable | disable
.Op Fl m Ar minfree
.Op Fl n Cm enable | disable
.Op Fl o Cm space | time
@@ -65,14 +65,14 @@ it must be downgraded to read-only or unmounted.
The parameters which are to be changed are indicated by the flags
given below:
.Bl -tag -width indent
-.It Fl a Cm enable | disable
-Turn on/off the administrative ACL enable flag.
.It Fl A
The file system has several backups of the super-block.
Specifying
this option will cause all backups to be modified as well as the
primary super-block.
This is potentially dangerous - use with caution.
+.It Fl a Cm enable | disable
+Turn on/off the administrative ACL enable flag.
.It Fl e Ar maxbpg
Indicate the maximum number of blocks any single file can
allocate out of a cylinder group before it is forced to begin
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index f915686ff478..45166c8e29be 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -109,8 +109,12 @@ main(argc, argv)
if (argc < 3)
usage();
found_arg = 0; /* at least one arg is required */
- while ((ch = getopt(argc, argv, "a:Ae:f:l:m:n:o:ps:")) != -1)
+ while ((ch = getopt(argc, argv, "Aa:e:f:l:m:n:o:ps:")) != -1)
switch (ch) {
+ case 'A':
+ found_arg = 1;
+ Aflag++;
+ break;
case 'a':
found_arg = 1;
name = "ACLs";
@@ -121,10 +125,6 @@ main(argc, argv)
}
aflag = 1;
break;
- case 'A':
- found_arg = 1;
- Aflag++;
- break;
case 'e':
found_arg = 1;
name = "maximum blocks per file in a cylinder group";
@@ -377,7 +377,7 @@ void
usage()
{
fprintf(stderr, "%s\n%s\n%s\n",
-"usage: tunefs [-a enable | disable] [-A] [-e maxbpg] [-f avgfilesize]",
+"usage: tunefs [-A] [-a enable | disable] [-e maxbpg] [-f avgfilesize]",
" [-l enable | disable] [-m minfree] [-n enable | disable]",
" [-o space | time] [-p] [-s avgfpdir] special | filesystem");
exit(2);