summaryrefslogtreecommitdiff
path: root/sbin/newlfs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-04 08:39:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-04 08:39:32 +0000
commit1d323f59d38d4db3c41a52592fbadd8277c6275f (patch)
tree4a9e882e48a0bfb8699567a9edc212d03f3a7926 /sbin/newlfs
parent8721f0fdc5583092c66c35cd6969304cf52d4d21 (diff)
cooperate with -t from newfs, and rename to /sbin/newfs_lfs as the naming scheme requires
Diffstat (limited to 'sbin/newlfs')
-rw-r--r--sbin/newlfs/Makefile4
-rw-r--r--sbin/newlfs/newfs.c14
2 files changed, 10 insertions, 8 deletions
diff --git a/sbin/newlfs/Makefile b/sbin/newlfs/Makefile
index 855e504122e..dbd748b4de0 100644
--- a/sbin/newlfs/Makefile
+++ b/sbin/newlfs/Makefile
@@ -1,7 +1,7 @@
-# $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
diff --git a/sbin/newlfs/newfs.c b/sbin/newlfs/newfs.c
index a13694c89a2..6d283ab3446 100644
--- a/sbin/newlfs/newfs.c
+++ b/sbin/newlfs/newfs.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#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 */
@@ -151,7 +151,7 @@ main(argc, argv)
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;
@@ -254,7 +254,9 @@ main(argc, argv)
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;
@@ -441,7 +443,7 @@ usage()
"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
@@ -473,8 +475,8 @@ usage()
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);
}