diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-27 16:47:33 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-28 15:16:15 +0100 |
commit | a51f56adb168ac7d4b65b98c7f0cdb07f266265f (patch) | |
tree | 804e1596c32f2064fc5f3bf504afbbb92c0cceea /generator | |
parent | 40d58fe65e10aa692d056a573e21e5afdc9329c7 (diff) | |
download | libguestfs-a51f56adb168ac7d4b65b98c7f0cdb07f266265f.tar.gz libguestfs-a51f56adb168ac7d4b65b98c7f0cdb07f266265f.tar.xz libguestfs-a51f56adb168ac7d4b65b98c7f0cdb07f266265f.zip |
New API: inspect-get-windows-systemroot to get systemroot.
We are already using heuristics in the C inspection code to
determine the Windows %SYSTEMROOT% directory. This change
just exposes this information through the API.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generator_actions.ml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 63ece157..086584ca 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1002,6 +1002,22 @@ deprecated C<guestfs_add_drive_with_if> call (q.v.) =back"); + ("inspect_get_windows_systemroot", (RString "systemroot", [Device "root"], []), -1, [], + [], + "get Windows systemroot of inspected operating system", + "\ +This function should only be called with a root device string +as returned by C<guestfs_inspect_os>. + +This returns the Windows systemroot of the inspected guest. +The systemroot is a directory path such as C</WINDOWS>. + +This call assumes that the guest is Windows and that the +systemroot could be determined by inspection. If this is not +the case then an error is returned. + +Please read L<guestfs(3)/INSPECTION> for more details."); + ] (* daemon_functions are any functions which cause some action |