Extracting block pointer list -- ffsinfo?

Peter Jeremy peterjeremy at optushome.com.au
Sat Aug 8 02:37:36 UTC 2009


On 2009-Aug-06 10:39:57 -0500, Jamie Ostrowski <jamie.ostrowski at gmail.com> wrote:
>    I'm a student studying filesystems, and I'd like to find a way to list
>the block pointers in an inode. Are there any tools in FreeBSD that can do
>that?

ffsinfo(8) or fsdb(8)

>db         ufs2_daddr_t[0] 0x             bc8

It might not be obvious without looking in the source code (this particular
output comes from /usr/src/sbin/growfs/debug.c) but that actually _is_ the
list of blocks.  It is more obvious if you run ffsinfo on a larger file.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20090808/f12fd3c3/attachment.pgp


More information about the freebsd-fs mailing list