From owner-freebsd-hackers Mon Feb 24 6:43: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD6437B401; Mon, 24 Feb 2003 06:42:58 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A574443FDD; Mon, 24 Feb 2003 06:42:55 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1OEgreG029717; Mon, 24 Feb 2003 09:42:53 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1OEgqo3029712; Mon, 24 Feb 2003 09:42:52 -0500 (EST) (envelope-from hiten) Date: Mon, 24 Feb 2003 09:42:52 -0500 From: Hiten Pandya To: Michael Ranner Cc: freebsd-hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, Garance A Drosihn Subject: Re: scan_ffs for UFS2 Message-ID: <20030224144252.GC74746@unixdaemons.com> References: <200302192220.12731.mranner@inode.at> <200302231540.20166.mranner@inode.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302231540.20166.mranner@inode.at> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Ranner (Sun, Feb 23, 2003 at 03:40:20PM +0100) wrote: > Am Freitag, 21. Februar 2003 22:38 schrieben Sie: > > At 10:20 PM +0100 2/19/03, Michael Ranner wrote: > > > > For what it's worth, we (FreeBSD) have a simple SuperBlock recovery > > program in /usr/src/tools/tools/find-sb. I picked up some updates > > from Dave Cross for that, and have a few more of my own. I just > > have to sit down and get them all together into a single version. > > I don't know how find-sb compares to the program you're talking > > about, but they sound kind of similar. > > Scan_ffs can print the lost disklabel for use with disklabel(8). > Find-sb, that version from cvs, seems only to print info about > the superblocks of each file system and you have to rebuild the > lost disklabel for your self. I was on the search for a simple > tool for everybody, and found scan_ffs several months ago > in the OpenBSD distribution (so it seems find-sb was like > reinventing the wheel) and Robert Watson suggested in a posting > december last year to adopt scan_ffs for UFS2. IMHO we should > reuse a already written program with existing man pages, so > we have the same sounding tools for the same tasks. > > I don't know what find-sb could do with your patches applied. > If it's superior to scan_ffs, we can forget scan_ffs. FWIW, I did make scan_ffs work with UFS2 at one point in time, but I lost my stuff in a disk crash. It's a pretty good utility with good documentation. The only thing you need to worry about in the scan_ffs code is the opendisk() routine, or something like that, but it shouldn't be hard. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message