Received: with ECARTIS (v1.0.0; list xfs); Thu, 28 Aug 2008 16:17:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m7SNHeZ2029915 for ; Thu, 28 Aug 2008 16:17:40 -0700 X-ASG-Debug-ID: 1219965543-0e1d01360000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from verein.lst.de (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id BA2843E2A78 for ; Thu, 28 Aug 2008 16:19:03 -0700 (PDT) Received: from verein.lst.de (verein.lst.de [213.95.11.210]) by cuda.sgi.com with ESMTP id F37eqxMfF5eDa4OJ for ; Thu, 28 Aug 2008 16:19:03 -0700 (PDT) Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id m7SNJ4IF019892 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 29 Aug 2008 01:19:04 +0200 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-6.6) id m7SNJ4BD019890 for xfs@oss.sgi.com; Fri, 29 Aug 2008 01:19:04 +0200 Date: Fri, 29 Aug 2008 01:19:04 +0200 From: Christoph Hellwig To: xfs@oss.sgi.com X-ASG-Orig-Subj: Re: [PATCH 4/4] fix biosize option Subject: Re: [PATCH 4/4] fix biosize option Message-ID: <20080828231904.GD19757@lst.de> References: <20080525190754.GD13372@lst.de> <20080723080520.GC3417@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080723080520.GC3417@lst.de> User-Agent: Mutt/1.3.28i X-Scanned-By: MIMEDefang 2.39 X-Barracuda-Connect: verein.lst.de[213.95.11.210] X-Barracuda-Start-Time: 1219965544 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.4003 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/8112/Thu Aug 28 14:27:00 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 17754 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: hch@lst.de Precedence: bulk X-list: xfs ping^2? On Wed, Jul 23, 2008 at 10:05:20AM +0200, Christoph Hellwig wrote: > ping? > > On Sun, May 25, 2008 at 09:07:54PM +0200, Christoph Hellwig wrote: > > iosizelog shouldn't be the same as iosize but the logarithm of it. Then > > again the current biosize option doesn't make much sense to me as it > > doesn't set the preferred I/O size as mentioned in the comment next to > > it but rather the allocation size and thus is identical to the allocsize > > option (except for the missing logarithm). It's also not documented in > > Documentation/filesystems/xfs.txt or the mount manpage. > > > > > > Signed-off-by: Christoph Hellwig > > > > Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c > > =================================================================== > > --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_super.c 2008-05-25 20:59:04.000000000 +0200 > > +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_super.c 2008-05-25 20:59:38.000000000 +0200 > > @@ -252,7 +252,7 @@ xfs_parseargs( > > return EINVAL; > > } > > iosize = simple_strtoul(value, &eov, 10); > > - iosizelog = (uint8_t) iosize; > > + iosizelog = ffs(iosize) - 1; > > } else if (!strcmp(this_char, MNTOPT_ALLOCSIZE)) { > > if (!value || !*value) { > > cmn_err(CE_WARN, > ---end quoted text--- ---end quoted text---