Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2001 09:41:39 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Kirk McKusick <mckusick@mckusick.com>, Ollivier Robert <roberto@eurocontrol.fr>, freebsd-arch@FreeBSD.ORG, obrien@FreeBSD.ORG
Subject:   Re: New option for newfs
Message-ID:  <20010921094139.C27714@sunbay.com>
In-Reply-To: <20010921054417.Q70596-100000@delplex.bde.org>; from bde@zeta.org.au on Fri, Sep 21, 2001 at 05:58:53AM %2B1000
References:  <200109201815.f8KIFQh33875@beastie.mckusick.com> <20010921054417.Q70596-100000@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 21, 2001 at 05:58:53AM +1000, Bruce Evans wrote:
[...]
> I have used this change for almost a year.
> 
> IIRC, just changing DESCPG to a huge value is sufficient (newfs reduces
> from the default to the maximum if the default is larger).  The ncyls
> stuff is to fix (?) the cosmetic (?) problem that bogus warnings are
> printed for vary small disks (ones where there are more cpg's than
> cylinders).
> 
> The patch is missing the manpage changes.
> 
> %%%
> Index: newfs.c
> ===================================================================
> RCS file: /home/ncvs/src/sbin/newfs/newfs.c,v
> retrieving revision 1.40
> diff -u -2 -r1.40 newfs.c
> --- newfs.c	19 Aug 2001 08:19:37 -0000	1.40
> +++ newfs.c	20 Sep 2001 18:55:28 -0000
> @@ -105,9 +97,8 @@
>   * Cylinder groups may have up to many cylinders. The actual
>   * number used depends upon how much information can be stored
> - * on a single cylinder. The default is to use 22 cylinders
> - * per group, which seems to be the largest value allowed given
> - * all the other default values.
> + * on a single cylinder. The default is to use as many as possible
> + * cylinders per group.
>   */
> -#define	DESCPG		22	/* desired fs_cpg */
> +#define	DESCPG		65536	/* desired fs_cpg ("infinity") */
> 
Shouldn't that be INT_MAX?


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010921094139.C27714>