From owner-cvs-src-old@FreeBSD.ORG Wed Jan 28 09:33:12 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3E73106574F for ; Wed, 28 Jan 2009 09:33:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C77F88FC26 for ; Wed, 28 Jan 2009 09:33:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0S9XCfI008622 for ; Wed, 28 Jan 2009 09:33:12 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0S9XCbr008621 for cvs-src-old@freebsd.org; Wed, 28 Jan 2009 09:33:12 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200901280933.n0S9XCbr008621@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Wed, 28 Jan 2009 09:33:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/dumpfs dumpfs.8 dumpfs.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 09:33:18 -0000 rwatson 2009-01-28 09:33:00 UTC FreeBSD src repository Modified files: sbin/dumpfs dumpfs.8 dumpfs.c Log: SVN rev 187814 on 2009-01-28 09:33:00Z by rwatson Add a new flag to dumpfs(8), -f, which causes dumpfs to list all free fragments in the file system by fragment (block) number. This new mode does the necessary arithmetic to generate absolute fragment numbers rather than than the cg-relative numbers printed in the default mode. If -f is passed once, contiguous fragment ranges are collapsed into an X-Y format as free block lists are currently printed in regular dumpfs output, but if specified twice, all block numbers are printed individually, allowing both compact and more script-friendly representation. This proves quite handy when attempting to recover deleted data, as it allows exclusion of non-deleted data from blocks searched. MFC after: 1 week Discussed with: jeff, Richard Clayton Sponsored by: Google, Inc. Revision Changes Path 1.17 +14 -2 src/sbin/dumpfs/dumpfs.8 1.45 +68 -5 src/sbin/dumpfs/dumpfs.c