Received: with ECARTIS (v1.0.0; list linux-xfs); Sun, 17 Aug 2003 17:08:54 -0700 (PDT) Received: from zok.sgi.com (zok.sgi.com [204.94.215.101]) by oss.sgi.com (8.12.9/8.12.9) with SMTP id h7I08eFl019316 for ; Sun, 17 Aug 2003 17:08:40 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by zok.sgi.com (8.12.9/8.12.9/linux-outbound_gateway-1.1) with SMTP id h7I08Xq0026870 for ; Sun, 17 Aug 2003 17:08:34 -0700 Received: from wobbly.melbourne.sgi.com (wobbly.melbourne.sgi.com [134.14.55.135]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id KAA06942; Mon, 18 Aug 2003 10:08:32 +1000 Received: from frodo.melbourne.sgi.com (root@frodo.melbourne.sgi.com [134.14.55.153]) by wobbly.melbourne.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id h7I08VmY029277; Mon, 18 Aug 2003 10:08:32 +1000 (EST) Received: from frodo.melbourne.sgi.com (nathans@localhost [127.0.0.1]) by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) with ESMTP id h7I07CCv001307; Mon, 18 Aug 2003 10:07:12 +1000 Received: (from nathans@localhost) by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) id h7I07BOs001305; Mon, 18 Aug 2003 10:07:11 +1000 Date: Mon, 18 Aug 2003 10:07:11 +1000 From: Nathan Scott To: girish dudhe Cc: linux-xfs@oss.sgi.com Subject: Re: How large file store in XFS Message-ID: <20030818000711.GA1251@frodo> References: <20030816065428.56233.qmail@web40410.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030816065428.56233.qmail@web40410.mail.yahoo.com> User-Agent: Mutt/1.5.3i X-archive-position: 68 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: nathans@sgi.com Precedence: bulk X-list: linux-xfs Content-Length: 1004 Lines: 30 On Fri, Aug 15, 2003 at 11:54:28PM -0700, girish dudhe wrote: > hi all, > > In XFS,whole file systen is divided into number of > allocation group. e.g. Consider size of the file > system is 1GB ,then it will create eight allocation > group that means each has 125 MB.Each allocation Group > has its own inodes and data blocks. That is correct. > Now I want to store the file of size 500MB.How it > gets stored ? Whether it gets stores in one allocation > group or multiple allocation group? Since it cannot be stored in one allocation group (500 > 125), it will be stored in multiple AGs (assuming it is not a sparse file ;). File extent maps use the full disk addresses, and so are not allocation group relative and can span multiple AGs if necessary. A single extent can never span more than one AG. The xfs_bmap(8) command will show you the block map for a given file, and you can see which allocation group each of the extents lives in using the -v option, iirc. cheers. -- Nathan