-# $OpenBSD: Makefile,v 1.3 1996/06/23 14:31:50 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1996/12/04 08:39:31 deraadt Exp $
# $NetBSD: Makefile,v 1.6 1996/05/16 07:17:49 thorpej Exp $
-PROG= newlfs
+PROG= newfs_lfs
SRCS= dkcksum.c lfs.c lfs_cksum.c misc.c newfs.c
MAN= newlfs.8
.PATH: ${.CURDIR}/../../sys/ufs/lfs ${.CURDIR}/../disklabel
-/* $OpenBSD: newfs.c,v 1.4 1996/07/01 11:02:55 downsj Exp $ */
+/* $OpenBSD: newfs.c,v 1.5 1996/12/04 08:39:31 deraadt Exp $ */
/* $NetBSD: newfs.c,v 1.5 1996/05/16 07:17:50 thorpej Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)newfs.c 8.5 (Berkeley) 5/24/95";
#else
-static char rcsid[] = "$OpenBSD: newfs.c,v 1.4 1996/07/01 11:02:55 downsj Exp $";
+static char rcsid[] = "$OpenBSD: newfs.c,v 1.5 1996/12/04 08:39:31 deraadt Exp $";
#endif
#endif /* not lint */
fatal("insane maxpartitions value %d", maxpartitions);
/* -F is mfs only and MUST come first! */
- opstring = "F:B:DLNS:T:a:b:c:d:e:f:i:k:l:m:n:o:p:r:s:t:u:x:";
+ opstring = "F:B:DLNS:T:a:b:c:d:e:f:i:k:l:t:m:n:o:p:r:s:z:u:x:";
if (!mfs)
opstring += 2;
if ((fssize = atoi(optarg)) <= 0)
fatal("%s: bad file system size", optarg);
break;
- case 't':
+ case 't': /* compat with "-t fstype" in newfs */
+ break;
+ case 'z':
if ((ntracks = atoi(optarg)) <= 0)
fatal("%s: bad total tracks", optarg);
break;
"usage: mfs [ -fsoptions ] special-device mount-point\n");
} else
fprintf(stderr,
- "usage: newlfs [ -fsoptions ] special-device%s\n",
+ "usage: newfs_lfs [ -fsoptions ] special-device%s\n",
#ifdef COMPAT
" [device-type]");
#else
fprintf(stderr, "\t-p spare sectors per track\n");
fprintf(stderr, "\t-r revolutions/minute\n");
fprintf(stderr, "\t-s file system size (sectors)\n");
- fprintf(stderr, "\t-t tracks/cylinder\n");
fprintf(stderr, "\t-u sectors/track\n");
fprintf(stderr, "\t-x spare sectors per cylinder\n");
+ fprintf(stderr, "\t-z tracks/cylinder\n");
exit(1);
}