[Libguestfs] [PATCH 0/2] Add /dev/mapper/* paths to guestfish tab completion.

Richard W.M. Jones rjones at redhat.com
Tue Jul 12 12:38:57 UTC 2011


When you open a LUKS device, you have to associate it with a "raw"
device mapper device (eg. /dev/mapper/lukstest).  Previously there has
been no way through the API to list such devices after they have been
created.  Also they are not revealed when you tab-complete /dev paths
in guestfish.

These two patches fix this.  The first patch adds a new API called
guestfs_list_dm_devices which lists all device mapper devices that are
not associated with LVs.  We don't want to return LVs here because we
prefer to use the "/dev/VG/LV" notation for these throughout the rest
of the API.

The second patch extends guestfish so that tab completion includes
/dev/mapper paths.

Future work:

Returning filesystems on opened LUKS devices from
guestfs_list_filesystems.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list