Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Aug 2009 10:32:18 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Jamie Ostrowski <jamie.ostrowski@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Extracting block pointer list -- ffsinfo?
Message-ID:  <20090808003218.GA56430@server.vk2pj.dyndns.org>
In-Reply-To: <29ae62fc0908060839u430fb073hf5b9f7837f9bc8b6@mail.gmail.com>
References:  <29ae62fc0908060839u430fb073hf5b9f7837f9bc8b6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2009-Aug-06 10:39:57 -0500, Jamie Ostrowski <jamie.ostrowski@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.

--=20
Peter Jeremy

--pf9I7BMVVzbSWLtt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkp8x5IACgkQ/opHv/APuIcE7wCfUN8+IL0cSoKmx6tWPW/d/7wY
EOoAoLLORZ3G+zRwy0QeDRmoyrKkVUgF
=WCAg
-----END PGP SIGNATURE-----

--pf9I7BMVVzbSWLtt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090808003218.GA56430>