From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: [PATCH 0/4] Fiemap, an extent mapping ioctl - round 2 Date: Thu, 3 Jul 2008 15:45:44 +0100 Message-ID: <20080703144544.GB1390@shareable.org> References: <20080625221835.GQ28100@wotan.suse.de> <4863A1C5.7020403@redhat.com> <20080627014119.GW29319@disturbed> <20080627094156.GA30200@shareable.org> <20080627224843.GZ6239@webber.adilger.int> <4865BC50.2030804@redhat.com> <20080702062612.GP6239@webber.adilger.int> <20080702142854.GB2993@shareable.org> <20080702212047.GL28100@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Dilger , Eric Sandeen , linux-fsdevel@vger.kernel.org, Andreas Dilger , Kalpak Shah , Josef Bacik To: Mark Fasheh Return-path: Received: from mail2.shareable.org ([80.68.89.115]:38017 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752676AbYGCOpr (ORCPT ); Thu, 3 Jul 2008 10:45:47 -0400 Content-Disposition: inline In-Reply-To: <20080702212047.GL28100@wotan.suse.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Mark Fasheh wrote: > On Wed, Jul 02, 2008 at 03:28:54PM +0100, Jamie Lokier wrote: > > Ok, wouldn't be appropriate to include the extent of the index block > > as well, somewhere, so that userspace can see which parts of the disk > > must be read to read the file? > > Mapping meta data doesn't belong in fiemap - we can come up with a dedicated > interface for that at a future date. I agree, but it seems inconsistent with the xattr / directory thing. Because that *is* mapping metadata. They may have no data blocks; it's been suggested they return extents covering metadata locations only. It seems the same use-cases where you might want metadata location from xattrs and directories apply equally to metadata locations for a file. I.e. knowing which parts of a disk will be accessed. -- Jamie