summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-12 13:26:25 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-12 18:44:45 +0100
commitce5a8978b54f409de4347f16f7065b063cb47cf1 (patch)
tree0bd7fc66b6a9eb4c5071af4fd835e753e02b4acc /generator
parent68af98e570adca21b2e4022090adb5d1ac6ca38a (diff)
downloadlibguestfs-ce5a8978b54f409de4347f16f7065b063cb47cf1.tar.gz
libguestfs-ce5a8978b54f409de4347f16f7065b063cb47cf1.tar.xz
libguestfs-ce5a8978b54f409de4347f16f7065b063cb47cf1.zip
New API: list-dm-devices (RHBZ#688062).
List device mapper devices.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml18
1 files changed, 17 insertions, 1 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 54cdd156..aedbedac 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -5574,7 +5574,10 @@ encrypted to the underlying C<device> respectively.
If this block device contains LVM volume groups, then
calling C<guestfs_vgscan> followed by C<guestfs_vg_activate_all>
-will make them visible.");
+will make them visible.
+
+Use C<guestfs_list_dm_devices> to list all device mapper
+devices.");
("luks_open_ro", (RErr, [Device "device"; Key "key"; String "mapname"], []), 258, [Optional "luks"],
[],
@@ -5986,6 +5989,19 @@ If required, C<trans=virtio> will be automatically added to the options.
Any other options required can be passed in the optional C<options>
parameter.");
+ ("list_dm_devices", (RStringList "devices", [], []), 287, [],
+ [],
+ "list device mapper devices",
+ "\
+List all device mapper devices.
+
+The returned list contains C</dev/mapper/*> devices, eg. ones created
+by a previous call to C<guestfs_luks_open>.
+
+Device mapper devices which correspond to logical volumes are I<not>
+returned in this list. Call C<guestfs_lvs> if you want to list logical
+volumes.");
+
]
let all_functions = non_daemon_functions @ daemon_functions