[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]