[Libguestfs] Supporting btrfs subvolumes during inspection

Matthew Booth mbooth at redhat.com
Thu Dec 20 17:24:37 UTC 2012

We've currently got a bug in libguestfs which means we can't inspect 
filesystems in btrfs subvolumes:


This is the default configuration if you select btrfs in F17+. The issue 
is that it requires an api to fix it, as the return values of 
inspect_os, inspect_get_filesystems and inspect_get_mountpoints can't 
express a btrfs subvolume as they're expected to be the names of block 

As a starter for 10, I propose the addition of parallel apis suffixed 
_ext which return annotated device descriptions, e.g.:


The string before the colon is a descriptor. The format of the string 
after the colon is custom to the descriptor, and is described in the 
API. A client program can ignore strings with unknown descriptors. New 
descriptors can be added as required.

The old apis would return the same as the _ext versions, except they 
would only return block devices. Other devices would be omitted.

Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490

More information about the Libguestfs mailing list