diff options
author | grr <grr@cvs.openbsd.org> | 1997-06-03 11:00:10 +0000 |
---|---|---|
committer | grr <grr@cvs.openbsd.org> | 1997-06-03 11:00:10 +0000 |
commit | 12c4d97de396fc61f1e1f5d14d4224c7ee7ee66f (patch) | |
tree | ccf4c25f3c2aefc48572e08cabc5193b613c5bf5 | |
parent | 5ad0664bcf76ecbff6b866f579ef5667721e78c4 (diff) |
number of unallocated sectors message was based on modified fssize, make it deal with reality
-rw-r--r-- | sbin/newfs/mkfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 44bca5abeee..e6a217159cf 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkfs.c,v 1.8 1997/05/29 20:22:43 deraadt Exp $ */ +/* $OpenBSD: mkfs.c,v 1.9 1997/06/03 11:00:09 grr Exp $ */ /* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)mkfs.c 8.3 (Berkeley) 2/3/94"; #else -static char rcsid[] = "$OpenBSD: mkfs.c,v 1.8 1997/05/29 20:22:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mkfs.c,v 1.9 1997/06/03 11:00:09 grr Exp $"; #endif #endif /* not lint */ @@ -544,8 +544,8 @@ next: if (warn && !mfs) { printf("Warning: %d sector(s) in last cylinder unallocated\n", sblock.fs_spc - - (fssize * NSPF(&sblock) - (sblock.fs_ncyl - 1) - * sblock.fs_spc)); + (dbtofsb(&sblock, fssize) * NSPF(&sblock) - + (sblock.fs_ncyl - 1) * sblock.fs_spc)); } /* * fill in remaining fields of the super block |