From owner-freebsd-current@FreeBSD.ORG Sat Feb 28 08:03:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4EFC16A4CE for ; Sat, 28 Feb 2004 08:03:37 -0800 (PST) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D7FA43D39 for ; Sat, 28 Feb 2004 08:03:37 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 18923 invoked from network); 28 Feb 2004 16:03:37 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Feb 2004 16:03:37 -0000 Received: from hydrogen.funkthat.com (zcdsdy@localhost.funkthat.com [127.0.0.1])i1SG3Z7Y043141; Sat, 28 Feb 2004 08:03:35 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i1SG3Z67043140; Sat, 28 Feb 2004 08:03:35 -0800 (PST) Date: Sat, 28 Feb 2004 08:03:34 -0800 From: John-Mark Gurney To: Julian Elischer Message-ID: <20040228160334.GA9337@funkthat.com> Mail-Followup-To: Julian Elischer , FreeBSD current users References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: FreeBSD current users Subject: Re: would this be a useful utility? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 16:03:38 -0000 Julian Elischer wrote this message on Thu, Feb 26, 2004 at 11:51 -0800: > We have a toolkit that includes such things as: > > showing which cylinder groups a file was allocated into > or > dumping all the blocks a file is on... > > I've often wanted this. I wonder if it is worth importing it > or making it a port? ffsrecov which I did work on getting updated to UFS2, but haven't done much, does do some similar stuff. It has code that you enter the block number and it will report to you which part of the file system that block is in, such as cylinder group, file data, etc. It doesn't dump the data blocks, but it does dump files, and w/o much modification can be made to dump this. It's written in C, and will effeciently use a raw device as I added my own caching structure to it. ffsrecov was a util that was hacked together to get data out of a disk that inode 2 got completely corrupted. (and I did get the data I needed off the disk). -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."