[libvirt-users] Blockpeek.. A little help please
Dave Allan
dallan at redhat.com
Thu Jul 8 01:13:03 UTC 2010
On Wed, Jul 07, 2010 at 05:47:37PM -0700, steven765 at yahoo.com wrote:
> Hi,
> I'm trying to use blockpeek to open the contents of a file. Inside the vm i ran debugfs: imap /test/findme and got: inode 32642 is part of block group 4 located at block 131074, offset 0x0100
>
> I try using 0x100 or 256 as the offset to blockpeek into that VM and get nonsense as a result.
>
> Am I calculating the offset incorrectly, is there a better way to find a file's location on disk? And then open it?
>
> I'm just printing the return as a string from the buffer looping over size. Is that incorrect?
> Thanks again,
> Steve
Oh, hey, sorry--I totally forgot to respond to your earlier email.
Would libguestfs possibly be a fit for what you're trying to do?
http://libguestfs.org/
Dave
More information about the libvirt-users
mailing list