summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-05 13:43:08 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-05 13:43:08 +0000
commit7d8807ec3bc0b772d65e2ca1196f0980a037504e (patch)
tree8d126df63e1f6206f0b6177785d134384deaa1cb /generator
parent9f7926e7274aea9be43cf4bc1a9d1cf42ac6bec0 (diff)
downloadlibguestfs-7d8807ec3bc0b772d65e2ca1196f0980a037504e.tar.gz
libguestfs-7d8807ec3bc0b772d65e2ca1196f0980a037504e.tar.xz
libguestfs-7d8807ec3bc0b772d65e2ca1196f0980a037504e.zip
New API: inspect-get-roots to return roots from last inspection.
Return the roots found by the last call to inspect-os, but without redoing the whole inspection.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml13
1 files changed, 13 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index e7dd42b6..4d7a4b33 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -1038,6 +1038,19 @@ the case then an error is returned.
Please read L<guestfs(3)/INSPECTION> for more details.");
+ ("inspect_get_roots", (RStringList "roots", [], []), -1, [],
+ [],
+ "return list of operating systems found by last inspection",
+ "\
+This function is a convenient way to get the list of root
+devices, as returned from a previous call to C<guestfs_inspect_os>,
+but without redoing the whole inspection process.
+
+This returns an empty list if either no root devices were
+found or the caller has not called C<guestfs_inspect_os>.
+
+Please read L<guestfs(3)/INSPECTION> for more details.");
+
]
(* daemon_functions are any functions which cause some action