diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-10 04:09:24 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-10 04:09:24 +0000 |
commit | 87ea4b1d043156bf2f7a4a44e97cc93ae69fcbbd (patch) | |
tree | 4acd5c94618c7119a54c69dce9ccae8eba102ce7 /sbin/newfs/mkfs.c | |
parent | 56f7ca9e7a51c799568a2ba0910deaad82635ead (diff) |
Add -q flag to newfs and use it in the install
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index d9e8f01cd43..d48df04b277 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkfs.c,v 1.11 1997/11/17 09:14:05 niklas Exp $ */ +/* $OpenBSD: mkfs.c,v 1.12 1999/04/10 04:09:23 millert 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.11 1997/11/17 09:14:05 niklas Exp $"; +static char rcsid[] = "$OpenBSD: mkfs.c,v 1.12 1999/04/10 04:09:23 millert Exp $"; #endif #endif /* not lint */ @@ -105,6 +105,7 @@ extern int maxbpg; /* maximum blocks per file in a cyl group */ extern int nrpos; /* # of distinguished rotational positions */ extern int bbsize; /* boot block size */ extern int sbsize; /* superblock size */ +extern int quiet; /* quiet flag */ extern u_long memleft; /* virtual memory available */ extern caddr_t membase; /* start address of memory based filesystem */ static caddr_t malloc(), calloc(); @@ -609,13 +610,13 @@ next: * Now build the cylinders group blocks and * then print out indices of cylinder groups. */ - if (!mfs) + if (!quiet) printf("super-block backups (for fsck -b #) at:\n"); i = 0; width = charsperline(); for (cylno = 0; cylno < sblock.fs_ncg; cylno++) { initcg(cylno, utime); - if (mfs) + if (quiet) continue; j = sprintf(tmpbuf, " %d,", fsbtodb(&sblock, cgsblock(&sblock, cylno))); @@ -627,7 +628,7 @@ next: printf("%s", tmpbuf); fflush(stdout); } - if (!mfs) + if (!quiet) printf("\n"); if (Nflag && !mfs) exit(0); |