Date: Thu, 20 Sep 2001 19:47:26 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Ollivier Robert <roberto@eurocontrol.fr> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: New option for newfs Message-ID: <20010920194726.A61491@sunbay.com> In-Reply-To: <20010920181423.A99633@caerdonn.eurocontrol.fr>; from roberto@eurocontrol.fr on Thu, Sep 20, 2001 at 06:14:23PM %2B0200 References: <20010920181423.A99633@caerdonn.eurocontrol.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010920194726.A61491>