Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f5SN2RC19370 for linux-xfs-outgoing; Thu, 28 Jun 2001 16:02:27 -0700 Received: from deliverator.sgi.com (deliverator.sgi.com [204.94.214.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f5SN2QV19367 for ; Thu, 28 Jun 2001 16:02:26 -0700 Received: from zeus-fddi.americas.sgi.com (zeus-fddi.americas.sgi.com [128.162.8.103]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id QAA21276 for ; Thu, 28 Jun 2001 16:02:20 -0700 (PDT) mail_from (lord@sgi.com) Received: from daisy-e185.americas.sgi.com (daisy.americas.sgi.com [128.162.185.214]) by zeus-fddi.americas.sgi.com (8.9.3/americas-smart-nospam1.1) with ESMTP id SAA2258631; Thu, 28 Jun 2001 18:00:26 -0500 (CDT) Received: from jen.americas.sgi.com (IDENT:root@jen.americas.sgi.com [128.162.187.49]) by daisy-e185.americas.sgi.com (SGI-8.9.3/SGI-server-1.7) with ESMTP id SAA76390; Thu, 28 Jun 2001 18:00:26 -0500 (CDT) Received: from jen.americas.sgi.com by jen.americas.sgi.com (8.11.2/SGI-client-1.7) via ESMTP id f5SN2BX30955; Thu, 28 Jun 2001 18:02:11 -0500 Message-Id: <200106282302.f5SN2BX30955@jen.americas.sgi.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: "Holger Smolinski" cc: Steve Lord , linux-xfs@oss.sgi.com Subject: Re: Contraint to Blksize 512? In-Reply-To: Message from "Holger Smolinski" of "Thu, 28 Jun 2001 16:49:13 +0200." Date: Thu, 28 Jun 2001 18:02:11 -0500 From: Steve Lord Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk > > >> Hello, > >> I tried to use XFS with devices of sector sizes larger than 512 Byte and > >> failed. > >> Apparently there are dependencies to a fixed blocksize of 512 Byte all > over > >> the code of XFS. > >> Are these contraints unavoidable by the design of XFS or could you > imagine > >> running an XFS e.g. on a device with 4k blocksize and what needs to be > done > >> to the code in order to do so? > >Yes, unfortunately XFS is built around assumptions about 512 byte block > >sizes. There was an internal project to clean this up which was shelved > >a while back, I will ask around and see if the code still exists. I > >think this would end up with an incompatible on disk format, given that > >some structures would change size, but I think that would be an acceptable > >solution for devices with a larger block size. > > For sure we would have incompatible layouts between XFS(512) and XFS(4k). > I'd imagine sth like replacing any 512 in the XFS code by blksize(device) > or blksize(xfs-type) rsp. > Do you see any design obstacles in doing so? I have just taken a look at an old project which was doing exactly this, XFS was extended to be runtime switchable between blocksizes. The code is against an old version of Irix, so it is not so easy to extract into a linux tree, but it looks like most of the changes are there. It is a little more complex than just looking for uses of 512 though. I will dig into this some more. Steve > > Gruesse / Regards > Dr. Holger Smolinski > > > > >