summaryrefslogtreecommitdiffstats
path: root/src/guestfs.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-07-28 15:40:42 +0100
committerRichard Jones <rjones@redhat.com>2010-08-17 14:09:25 +0100
commit8289aa1ad68ec94c87fc4d538f638d8816052d92 (patch)
treedcd5830a796849d0a5b0c7f2ee2854e503f2c2a6 /src/guestfs.c
parent65e9ac4595fbace8f301030469932be518456246 (diff)
downloadlibguestfs-8289aa1ad68ec94c87fc4d538f638d8816052d92.tar.gz
libguestfs-8289aa1ad68ec94c87fc4d538f638d8816052d92.tar.xz
libguestfs-8289aa1ad68ec94c87fc4d538f638d8816052d92.zip
New APIs for guest inspection.
This commit converts (some of) the Perl inspection code to C and makes it available through core APIs. The new APIs are: inspect-os - Does the inspection, returns list of OSes inspect-get-* - Get results of the inspection where '*' is one of: type - 'windows' or 'linux' distro - Linux distro arch - architecture product-name - long product name string major-version minor-version - major.minor version of OS mountpoints - get a list of the mountpoints filesystems - get all filesystems associated with the OS This works for all existing supported Linux and Windows OSes.
Diffstat (limited to 'src/guestfs.c')
-rw-r--r--src/guestfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guestfs.c b/src/guestfs.c
index 871d7138..cef80db8 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -184,6 +184,8 @@ guestfs_close (guestfs_h *g)
if (g->close_cb)
g->close_cb (g, g->close_cb_data);
+ guestfs___free_inspect_info (g);
+
/* Try to sync if autosync flag is set. */
if (g->autosync && g->state == READY) {
guestfs_umount_all (g);