From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 6 06:52:29 2007 Return-Path: X-Original-To: freebsd-ports-bugs@FreeBSD.org Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBF8516A400; Tue, 6 Feb 2007 06:52:29 +0000 (UTC) (envelope-from sten@blinkenlights.nl) Received: from mx1.blinkenlights.nl (mx1.blinkenlights.nl [193.202.115.243]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8EA13C4AC; Tue, 6 Feb 2007 06:52:29 +0000 (UTC) (envelope-from sten@blinkenlights.nl) Received: from zaphod.blinkenlights.nl (unknown [IPv6:2001:980:ffe:3:2e0:81ff:fe2f:bb6a]) by mx1.blinkenlights.nl (Postfix) with ESMTP id 151DF3F425; Tue, 6 Feb 2007 07:32:51 +0100 (CET) Received: by zaphod.blinkenlights.nl (Postfix, from userid 1001) id D307017F464; Tue, 6 Feb 2007 07:32:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zaphod.blinkenlights.nl (Postfix) with ESMTP id C761B17F45F; Tue, 6 Feb 2007 07:32:44 +0100 (CET) Date: Tue, 6 Feb 2007 07:32:44 +0100 (CET) From: Sten Spans To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org In-Reply-To: <200702041800.l14I0Y3a042116@freefall.freebsd.org> Message-ID: References: <200702041800.l14I0Y3a042116@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: ports/108766: New port: sysutils/ffs2recov ufs2 recovery utility X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 06:52:29 -0000 On Sun, 4 Feb 2007, FreeBSD-gnats-submit@FreeBSD.org wrote: >> Category: ports >> Responsible: freebsd-ports-bugs >> Synopsis: New port: sysutils/ffs2recov ufs2 recovery utility >> Arrival-Date: Sun Feb 04 18:00:34 GMT 2007 Here follows an updated port which includes recent changes by Frank Mayhar and Rong-En Fan. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ffs2recov # ffs2recov/Makefile # ffs2recov/distinfo # ffs2recov/pkg-descr # echo c - ffs2recov mkdir -p ffs2recov > /dev/null 2>&1 echo x - ffs2recov/Makefile sed 's/^X//' >ffs2recov/Makefile << 'END-of-ffs2recov/Makefile' X# New ports collection makefile for: ffs2recov X# Date created: 20070204 X# Whom: sten@blinkenlights.nl X# X# $FreeBSD$ X# X XPORTNAME= ffs2recov XPORTVERSION= 1.0 XCATEGORIES= sysutils XMASTER_SITES= http://www.exit.com/Archives/FreeBSD/ X XMAINTAINER= sten@blinkenlights.nl XCOMMENT= A utility to recover UFS2 filesystems X XUSE_BZIP2= yes XWRKSRC= ${WRKDIR}/${PORTNAME} X XMAN8= ffs2recov.8 XPLIST_FILES= sbin/ffs2recov XWARNS=9 Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/ffs2recov ${PREFIX}/sbin/. X ${INSTALL_MAN} ${WRKSRC}/ffs2recov.8 ${MAN8PREFIX}/man/man8/. X X.include END-of-ffs2recov/Makefile echo x - ffs2recov/distinfo sed 's/^X//' >ffs2recov/distinfo << 'END-of-ffs2recov/distinfo' XSHA256 (ffs2recov-1.0.tar.bz2) = 92b442008085d5141ccf536bdfc09e3fc877a9fd90fa42c5460e2559f4cbd614 XMD5 (ffs2recov-1.0.tar.bz2) = 93f187f6a820dd3fd4b430ced1805986 XSIZE (ffs2recov-1.0.tar.bz2) = 15022 END-of-ffs2recov/distinfo echo x - ffs2recov/pkg-descr sed 's/^X//' >ffs2recov/pkg-descr << 'END-of-ffs2recov/pkg-descr' XThis is the UFS2 version of ffsrecov, heavily (and I do mean _heavily_) based Xon John-Mark Gurney's program of the same name. It does basically the same Xthing, only it's a little more resistant to crashes caused by bad pointers, Xoffsets and the like, and it does a little more than his did. Don't contact Xhim for problems with this program, it's definitely _my_ fault if it breaks. X XThis program is not ready for prime time. It has some shortfalls, it has a Xbunch of new options that are mostly undocumented and the manpage could Xstand to be rewritten. One _good_ thing is that it now uses the libufs Xlibrary and is therefore not as dependent on carrying around low-level code. X XOn the other hand, it worked for me. Using this tool, I was able to recover Xalmost all of a several-hundred-gigabyte file system that had been stomped Xby a misconfigured RAID controller. (That's why I wrote the thing in the Xfirst place, in fact.) With the right knowledge and a lot of patience, Xit is possible to recover most or all of a trashed file system, at least if Xit's not _too_ trashed. X XI'm releasing it under the Berkeley two-clause license in the hope that Xsomeone with more time will pick it up, polish it and make something Xa little more useful out of it. X XFrank Mayhar Xfrank@exit.com END-of-ffs2recov/pkg-descr exit -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem