A new version of this patch, previously posted here: https://www.redhat.com/archives/libguestfs/2009-August/thread.html#00031 I've made some of the changes that Jim suggested, but I didn't fix the error handling of readdir because that loop always reads from a tmpfs. It didn't seem like there would realistically be any read errors(?) These commands are compromised in their usefulness by a long-standing LVM bug (https://bugzilla.redhat.com/show_bug.cgi?id=465691), which means they won't list anything for LVM devices on Fedora. They should work on non-Fedora-derived platforms however. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw