From owner-cvs-src-old@FreeBSD.ORG Sat Feb 7 11:15:56 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 87DEB1065672 for ; Sat, 7 Feb 2009 11:15:56 +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 745778FC0C for ; Sat, 7 Feb 2009 11:15:56 +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 n17BFuvE035867 for ; Sat, 7 Feb 2009 11:15:56 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n17BFuka035866 for cvs-src-old@freebsd.org; Sat, 7 Feb 2009 11:15:56 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200902071115.n17BFuka035866@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Sat, 7 Feb 2009 11:15:53 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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: Sat, 07 Feb 2009 11:15:56 -0000 rwatson 2009-02-07 11:15:53 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sbin/dumpfs dumpfs.8 dumpfs.c Log: SVN rev 188278 on 2009-02-07 11:15:53Z by rwatson Merge r187814, r187820 from head to stable/7: 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. Discussed with: jeff, Richard Clayton Sponsored by: Google, Inc. Print disk offets as %jd rather than %lld; I fixed one before committing but missed the other, which breaks 64-bit builds. Reported by: bf Reviewed by: mckusick Revision Changes Path 1.16.2.1 +14 -2 src/sbin/dumpfs/dumpfs.8 1.44.2.1 +68 -5 src/sbin/dumpfs/dumpfs.c