Date: Sat, 7 Feb 2009 11:15:53 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/dumpfs dumpfs.8 dumpfs.c Message-ID: <200902071115.n17BFuka035866@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <richard dot clayton at cl.cam.ac.uk>
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 <bf2006a at yahoo dot com>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902071115.n17BFuka035866>
