diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-01-28 09:33:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-01-28 09:33:00 +0000 |
commit | 72666b75fd4ca3c1dba2215cc9681322d3a3ba0f (patch) | |
tree | eefd0840a57323969ee345db6b769d3f4b0df088 /sys | |
parent | 390e30c82cf0bca964e300d873e8e5b83bb86bd5 (diff) | |
download | FreeBSD-src-72666b75fd4ca3c1dba2215cc9681322d3a3ba0f.zip FreeBSD-src-72666b75fd4ca3c1dba2215cc9681322d3a3ba0f.tar.gz |
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 <richard dot clayton at cl.cam.ac.uk>
Sponsored by: Google, Inc.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions