
On Thu, Sep 27, 2007 at 07:07:00PM +0100, Richard W.M. Jones wrote:
(2) It only understands a limited set of partition types. Assuming that the files and partitions that we get back from libvirt / Xen correspond to block devices in the guests, we can go some way towards manually parsing those partitions to find out what they contain. We can read the MBR, EBR, superblocks and so on. However that's a lot of parsing work, and currently there is no library which understands a wide range of partition schemes and filesystem types (not even libparted which doesn't support LVM yet). The Linux kernel does support that, but there's not really any good way to access that work.
Note that extending libfsimage would be the way to go for the latter part of this (understanding file systems), I think. regards, john