Remove the -v option, it is now default behaviour.

Sponsored by:	DARPA & NAI Labs
This commit is contained in:
Poul-Henning Kamp 2002-04-24 12:27:03 +00:00
parent afb2dc7515
commit 4ab9c1d126
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95360
2 changed files with 5 additions and 17 deletions

View File

@ -55,7 +55,6 @@
.Op Fl o Ar optimization .Op Fl o Ar optimization
.Op Fl s Ar size .Op Fl s Ar size
.Op Fl u Ar sectors .Op Fl u Ar sectors
.Op Fl v
.Ar special .Ar special
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm Newfs .Nm Newfs
@ -163,12 +162,6 @@ raw partition specified in
(in other words, (in other words,
.Nm .Nm
will use the entire partition for the file system). will use the entire partition for the file system).
.It Fl v
Specify that the disk does not contain any partitions, and that
.Nm
should build a file system on the whole disk.
This option is useful for synthetic disks such as
.Nm vinum .
.El .El
.Pp .Pp
The following options override the standard sizes for the disk geometry. The following options override the standard sizes for the disk geometry.

View File

@ -151,13 +151,11 @@ main(int argc, char *argv[])
struct partition oldpartition; struct partition oldpartition;
struct stat st; struct stat st;
char *cp, *special; char *cp, *special;
int ch, n, vflag; int ch, n;
off_t mediasize; off_t mediasize;
vflag = 0;
while ((ch = getopt(argc, argv, while ((ch = getopt(argc, argv,
"NRS:T:Ua:b:c:e:f:g:h:i:m:o:s:u:v:")) != -1) "NRS:T:Ua:b:c:e:f:g:h:i:m:o:s:u:")) != -1)
switch (ch) { switch (ch) {
case 'N': case 'N':
Nflag = 1; Nflag = 1;
@ -234,9 +232,6 @@ main(int argc, char *argv[])
errx(1, "%s: bad sectors/track", optarg); errx(1, "%s: bad sectors/track", optarg);
secpercyl = n; secpercyl = n;
break; break;
case 'v':
vflag = 1;
break;
case '?': case '?':
default: default:
usage(); usage();
@ -279,11 +274,11 @@ main(int argc, char *argv[])
if (lp != NULL) { if (lp != NULL) {
cp = strchr(special, '\0'); cp = strchr(special, '\0');
cp--; cp--;
if (!vflag && (*cp < 'a' || *cp > 'h') && !isdigit(*cp)) if ((*cp < 'a' || *cp > 'h') && !isdigit(*cp))
errx(1, "%s: can't figure out file system partition", errx(1, "%s: can't figure out file system partition",
special); special);
if (vflag || isdigit(*cp)) if (isdigit(*cp))
pp = &lp->d_partitions[0]; pp = &lp->d_partitions[RAW_PART];
else else
pp = &lp->d_partitions[*cp - 'a']; pp = &lp->d_partitions[*cp - 'a'];
oldpartition = *pp; oldpartition = *pp;