Subject: misc/25874: the usage of tunefs(8) is outdated
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 06/09/2004 01:39:54
>Number:         25874
>Category:       misc
>Synopsis:       the usage of tunefs(8) is outdated
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 08 16:40:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0_BETA NetBSD 2.0_BETA (FIREFLY.MP) #23: Tue Jun 8 02:19:00 JST 2004 hiratuka@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	-a, -d and -k don't exist in tunefs(8).

% tunefs -a
tunefs: unknown option -- a
usage: tunefs [-AFN] tuneup-options special-device
where tuneup-options are:
        -a maximum contiguous blocks
        -d rotational delay between contiguous blocks
        -e maximum blocks per file in a cylinder group
        -g average file size
        -h expected number of files per directory
        -k track skew in sectors
        -m minimum percentage of free space
        -o optimization preference (`space' or `time')

>How-To-Repeat:
	tunefs -a

>Fix:
Index: tunefs.c
===================================================================
RCS file: /cvs/cvsroot/src/sbin/tunefs/tunefs.c,v
retrieving revision 1.31
diff -u -r1.31 tunefs.c
--- tunefs.c	27 Mar 2004 13:05:07 -0000	1.31
+++ tunefs.c	8 Jun 2004 16:31:02 -0000
@@ -313,12 +313,9 @@
 
 	fprintf(stderr, "usage: tunefs [-AFN] 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-g average file size\n");
 	fprintf(stderr, "\t-h expected number of files per directory\n");
-	fprintf(stderr, "\t-k track skew in sectors\n");
 	fprintf(stderr, "\t-m minimum percentage of free space\n");
 #ifdef TUNEFS_SOFTDEP
 	fprintf(stderr, "\t-n soft dependencies (`enable' or `disable')\n");
>Release-Note:
>Audit-Trail:
>Unformatted: