diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-18 07:58:15 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-18 07:58:15 +0000 |
commit | 16dc7ba2c5c0ecedafa8af878f72c40e4b5a355f (patch) | |
tree | 13c15f465b289cc90d29b8889ec4feeb4cd5c452 | |
parent | 27a043a4c2ddb649e859cc904a960ea27586a2cd (diff) |
Add -q flag for compatiblity with newfs as requested by miod@
-rw-r--r-- | sbin/newfs_ext2fs/newfs_ext2fs.8 | 7 | ||||
-rw-r--r-- | sbin/newfs_ext2fs/newfs_ext2fs.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/sbin/newfs_ext2fs/newfs_ext2fs.8 b/sbin/newfs_ext2fs/newfs_ext2fs.8 index f88b6810d94..982b26fd6e5 100644 --- a/sbin/newfs_ext2fs/newfs_ext2fs.8 +++ b/sbin/newfs_ext2fs/newfs_ext2fs.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: newfs_ext2fs.8,v 1.2 2010/02/16 19:24:16 jmc Exp $ +.\" $OpenBSD: newfs_ext2fs.8,v 1.3 2010/02/18 07:58:14 otto Exp $ .\" $NetBSD: newfs_ext2fs.8,v 1.7 2009/12/01 08:47:25 pooka Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)newfs.8 8.6 (Berkeley) 5/3/95 .\" -.Dd $Mdocdate: February 16 2010 $ +.Dd $Mdocdate: February 18 2010 $ .Dt NEWFS_EXT2FS 8 .Os .Sh NAME @@ -179,6 +179,9 @@ utility on not all but sparse block groups. Enable files larger than 2G bytes. .El .El +.It Fl q +Equivalent to +.Fl V Ar 1 . .It Fl s Ar size The size of the file system in sectors. An diff --git a/sbin/newfs_ext2fs/newfs_ext2fs.c b/sbin/newfs_ext2fs/newfs_ext2fs.c index ef57f24c0d3..af3e1e179e1 100644 --- a/sbin/newfs_ext2fs/newfs_ext2fs.c +++ b/sbin/newfs_ext2fs/newfs_ext2fs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newfs_ext2fs.c,v 1.4 2010/02/17 19:26:10 otto Exp $ */ +/* $OpenBSD: newfs_ext2fs.c,v 1.5 2010/02/18 07:58:14 otto Exp $ */ /* $NetBSD: newfs_ext2fs.c,v 1.8 2009/03/02 10:38:13 tsutsui Exp $ */ /* @@ -125,7 +125,7 @@ main(int argc, char *argv[]) fsi = fso = -1; Fflag = Iflag = Zflag = 0; verbosity = -1; - opstring = "D:FINO:S:V:Zb:f:i:l:m:n:s:t:v:"; + opstring = "D:FINO:S:V:Zb:f:i:l:m:n:qs:t:v:"; byte_sized = 0; while ((ch = getopt(argc, argv, opstring)) != -1) switch (ch) { @@ -187,6 +187,9 @@ main(int argc, char *argv[]) num_inodes = strsuftoi64("number of inodes", optarg, 1, INT_MAX, NULL); break; + case 'q': + verbosity = 1; + break; case 's': fssize = strsuftoi64("file system size", optarg, INT64_MIN, INT64_MAX, &byte_sized); |