From owner-freebsd-arch Thu Sep 20 9:47:54 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 20D1D37B419 for ; Thu, 20 Sep 2001 09:47:48 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f8KGlQ662584; Thu, 20 Sep 2001 19:47:26 +0300 (EEST) (envelope-from ru) Date: Thu, 20 Sep 2001 19:47:26 +0300 From: Ruslan Ermilov To: Ollivier Robert Cc: freebsd-arch@FreeBSD.ORG Subject: Re: New option for newfs Message-ID: <20010920194726.A61491@sunbay.com> References: <20010920181423.A99633@caerdonn.eurocontrol.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010920181423.A99633@caerdonn.eurocontrol.fr>; from roberto@eurocontrol.fr on Thu, Sep 20, 2001 at 06:14:23PM +0200 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 Thu, Sep 20, 2001 at 06:14:23PM +0200, Ollivier Robert wrote: > I want to add a new option to newfs in order to maximise the number of > cylinders per cg (to reduce fragmentation and head movement). > > Right now, one can use '-c' to specify another value but > > 1. the default is 22 (calculated for a 8k/1k FS) regardless of the FS > (i.e. it will still be 22 even though you choose a 16k/2k FS). > > 2. newfs barfs when '-c' argument is too high. > > Proposal: a new option ('-M') that says: ignore -c if present, calculate > the maxcpg allowed for the given argument to newfs and use that. > Umm, how about just making ``-c max'' DTRT? You can strcasecmp(optarg, "max") and set Mflag = 1 if it matches. No need for -M and (ugly) MAXCPG then. 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