From owner-freebsd-arch Thu Sep 20 23:42:47 2001 Delivered-To: freebsd-arch@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id EF83637B40A; Thu, 20 Sep 2001 23:42:37 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f8L6fda28896; Fri, 21 Sep 2001 09:41:39 +0300 (EEST) (envelope-from ru) Date: Fri, 21 Sep 2001 09:41:39 +0300 From: Ruslan Ermilov To: Bruce Evans Cc: Kirk McKusick , Ollivier Robert , freebsd-arch@FreeBSD.ORG, obrien@FreeBSD.ORG Subject: Re: New option for newfs Message-ID: <20010921094139.C27714@sunbay.com> References: <200109201815.f8KIFQh33875@beastie.mckusick.com> <20010921054417.Q70596-100000@delplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010921054417.Q70596-100000@delplex.bde.org>; from bde@zeta.org.au on Fri, Sep 21, 2001 at 05:58:53AM +1000 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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