* fix .Nm usage
* prototype main() to pass WARNS=1
This commit is contained in:
parent
2e61b867aa
commit
69e477ff1f
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: tunefs.8,v 1.10 1996/12/27 05:53:53 mikel Exp $
|
.\" $NetBSD: tunefs.8,v 1.11 1997/09/15 11:27:12 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1983, 1991, 1993
|
.\" Copyright (c) 1983, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
.Nm tunefs
|
.Nm tunefs
|
||||||
.Nd tune up an existing file system
|
.Nd tune up an existing file system
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm tunefs
|
.Nm
|
||||||
.Op Fl a Ar maxcontig
|
.Op Fl a Ar maxcontig
|
||||||
.Op Fl d Ar rotdelay
|
.Op Fl d Ar rotdelay
|
||||||
.Op Fl e Ar maxbpg
|
.Op Fl e Ar maxbpg
|
||||||
@ -50,7 +50,7 @@
|
|||||||
.Ek
|
.Ek
|
||||||
.Op Ar special | Ar filesys
|
.Op Ar special | Ar filesys
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm Tunefs
|
.Nm
|
||||||
is designed to change the dynamic parameters of a file system
|
is designed to change the dynamic parameters of a file system
|
||||||
which affect the layout policies.
|
which affect the layout policies.
|
||||||
The parameters which are to be changed are indicated by the flags
|
The parameters which are to be changed are indicated by the flags
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: tunefs.c,v 1.10 1995/03/18 15:01:31 cgd Exp $ */
|
/* $NetBSD: tunefs.c,v 1.11 1997/09/15 11:27:13 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1983, 1993
|
* Copyright (c) 1983, 1993
|
||||||
@ -33,17 +33,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
__COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||||
"@(#) Copyright (c) 1983, 1993\n\
|
The Regents of the University of California. All rights reserved.\n");
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94";
|
static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: tunefs.c,v 1.10 1995/03/18 15:01:31 cgd Exp $";
|
__RCSID("$NetBSD: tunefs.c,v 1.11 1997/09/15 11:27:13 lukem Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -76,9 +76,10 @@ union {
|
|||||||
int fi;
|
int fi;
|
||||||
long dev_bsize = 1;
|
long dev_bsize = 1;
|
||||||
|
|
||||||
void bwrite(daddr_t, char *, int);
|
void bwrite __P((daddr_t, char *, int));
|
||||||
int bread(daddr_t, char *, int);
|
int bread __P((daddr_t, char *, int));
|
||||||
void getsb(struct fs *, char *);
|
void getsb __P((struct fs *, char *));
|
||||||
|
int main __P((int, char *[]));
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -243,7 +244,7 @@ usage()
|
|||||||
|
|
||||||
void
|
void
|
||||||
getsb(fs, file)
|
getsb(fs, file)
|
||||||
register struct fs *fs;
|
struct fs *fs;
|
||||||
char *file;
|
char *file;
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user