From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q1TKOE3Y043877 for ; Wed, 29 Feb 2012 14:24:14 -0600 Received: from busoni.debian.org (busoni.debian.org [140.211.15.34]) by cuda.sgi.com with ESMTP id y8u2nnHn75XIY4qp (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 29 Feb 2012 12:24:13 -0800 (PST) Subject: Bug#661580: mkfs.xfs fails to detect correct sector size Resent-To: debian-bugs-dist@lists.debian.org Resent-Message-ID: Message-ID: <4F4E82E6.3040505@sandeen.net> Date: Wed, 29 Feb 2012 13:56:22 -0600 From: Eric Sandeen MIME-Version: 1.0 References: <20120228074914.31280.78231.reportbug@frosties.localnet> <20120228091151.GA24717@infradead.org> In-Reply-To: <20120228091151.GA24717@infradead.org> Reply-To: Eric Sandeen , 661580@bugs.debian.org List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Christoph Hellwig , 661580@bugs.debian.org Cc: Debian Bug Tracking System , Carlos Maiolino , Goswin von Brederlow On 2/28/12 3:11 AM, Christoph Hellwig wrote: > Carlos, didn't you plan to look into this issue? > > Goswin, how do you determin that mkfs is still doing unaligned I/O > when forcing the large sevtor size? Once we set the sector size XFS > can't do I/O smaller than it. I did think this was supposed to be working already: get_topology(&xi, &ft); if (ft.sectoralign) { /* * Older Linux software RAID versions want the sector size * to match the block size to avoid switching I/O sizes. * For the legacy libdisk case we thus set the sector size to * match the block size. For systems using libblkid we assume * that the kernel is recent enough to not require this and * ft.sectoralign will never be set. */ sectorsize = blocksize; } else if (!ssflag) { /* * Unless specified manually on the command line use the * advertised sector size of the device. */ sectorsize = ft.sectorsize ? ft.sectorsize : XFS_MIN_SECTORSIZE; } but it may depend on whether or not it is being built with libblkid support or not...? I'll try to test it when I have some time, unless Carlos beats me to it. -Eric _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs