* update for WARNS=1
* getopt returns -1 not EOF * fix .Nm usage
This commit is contained in:
parent
319d918511
commit
77270f8647
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs.c,v 1.9 1997/08/01 06:15:20 mikel Exp $ */
|
||||
/* $NetBSD: lfs.c,v 1.10 1997/09/15 06:55:39 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -33,11 +33,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)lfs.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: lfs.c,v 1.9 1997/08/01 06:15:20 mikel Exp $";
|
||||
__RCSID("$NetBSD: lfs.c,v 1.10 1997/09/15 06:55:39 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: misc.c,v 1.2 1995/03/18 14:58:51 cgd Exp $ */
|
||||
/* $NetBSD: misc.c,v 1.3 1997/09/15 06:55:43 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -33,11 +33,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: misc.c,v 1.2 1995/03/18 14:58:51 cgd Exp $";
|
||||
__RCSID("$NetBSD: misc.c,v 1.3 1997/09/15 06:55:43 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: newfs.c,v 1.7 1997/08/25 19:31:52 kleink Exp $ */
|
||||
/* $NetBSD: newfs.c,v 1.8 1997/09/15 06:55:44 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1992, 1993
|
||||
@ -33,17 +33,17 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"@(#) Copyright (c) 1989, 1992, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
__COPYRIGHT("@(#) Copyright (c) 1989, 1992, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)newfs.c 8.3 (Berkeley) 4/22/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: newfs.c,v 1.7 1997/08/25 19:31:52 kleink Exp $";
|
||||
__RCSID("$NetBSD: newfs.c,v 1.8 1997/09/15 06:55:44 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -157,7 +157,7 @@ main(argc, argv)
|
||||
opstring += 2;
|
||||
|
||||
debug = lfs = segsize = 0;
|
||||
while ((ch = getopt(argc, argv, opstring)) != EOF)
|
||||
while ((ch = getopt(argc, argv, opstring)) != -1)
|
||||
switch(ch) {
|
||||
case 'B': /* LFS segment size */
|
||||
if ((segsize = atoi(optarg)) < LFS_MINSEGSIZE)
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: newlfs.8,v 1.2 1995/03/18 14:58:54 cgd Exp $
|
||||
.\" $NetBSD: newlfs.8,v 1.3 1997/09/15 06:55:46 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -40,16 +40,16 @@
|
||||
.Nm newlfs
|
||||
.Nd construct a new LFS file system
|
||||
.Sh SYNOPSIS
|
||||
.Nm newlfs
|
||||
.Nm
|
||||
.Fl L
|
||||
.Op Ar newlfs-options
|
||||
.Ar special
|
||||
.Sh DESCRIPTION
|
||||
.Nm Newlfs
|
||||
.Nm
|
||||
builds a log-structured file system on the specified special
|
||||
device basing its defaults on the information in the disk label.
|
||||
(Before running
|
||||
.Nm newlfs
|
||||
.Nm
|
||||
the disk must be labeled using
|
||||
.Xr disklabel 8 .)
|
||||
.Pp
|
||||
|
Loading…
Reference in New Issue
Block a user