From: Andreas Dilger Subject: Re: ext2_block_alloc_info Date: Tue, 23 Dec 2008 01:05:45 -0700 Message-ID: <20081223080545.GI5000@webber.adilger.int> References: <2d08ef090812200743o47cd4abdwd9915653f6f4f3f7@mail.gmail.com> <804dabb00812201725r304bed36ufc56ebc2393e2299@mail.gmail.com> <170fa0d20812221856j4c660384nc2ac693ca8fd0ba4@mail.gmail.com> <804dabb00812222029x76d34c24o798ade5dd0e31351@mail.gmail.com> <37d33d830812222037s362060c3i8278a8a39083c50f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Cc: Peter Teoh , Mike Snitzer , Rohit Sharma , Kernelnewbies , ext4 To: Sandeep K Sinha Return-path: Received: from sca-es-mail-2.Sun.COM ([192.18.43.133]:40477 "EHLO sca-es-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752528AbYLWIGB (ORCPT ); Tue, 23 Dec 2008 03:06:01 -0500 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id mBN85m5n024801 for ; Tue, 23 Dec 2008 00:05:48 -0800 (PST) Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KCB00901L5I5000@fe-sfbay-09.sun.com> (original mail from adilger@sun.com) for linux-ext4@vger.kernel.org; Tue, 23 Dec 2008 00:05:48 -0800 (PST) In-reply-to: <37d33d830812222037s362060c3i8278a8a39083c50f@mail.gmail.com> Content-disposition: inline Sender: linux-ext4-owner@vger.kernel.org List-ID: On Dec 23, 2008 10:07 +0530, Sandeep K Sinha wrote: > I have a tool ready with unfolds a file system completely thrugh > ioctl. You will just have to patch the kernel. > And that also, its for ext2. It would be much more generic to use the FIEMAP ioctl, which has made it into the 2.6.28 kernel. It will currently only dump the file data and xattr blocks, but it is designed to be extensible to allow dumping other kinds of inode metadata (e.g. indirect/index blocks, etc). > But its really verbose. There are patches to e2fsprogs to allow filefrag to call FIEMAP to dump the file layout. They were posted to this list a few months ago, and are scheduled for upstream inclusion. While they will be part of e2fsprogs, the FIEMAP ioctl is a generic mechanism that is supported by ext2/3/4, OCFS, and XFS, and hopefully more now that it is in the kernel. > You can have a look for the sources @ http://code.google.com/p/fscops/ > We will be uploading the tool there soon. While the description of "What OHSM offer" sounds really good, I couldn't find any code or description of what is actually implemented. Is this a system that actually works, or is it only describing what you would like OHSM to do? Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc.