inspect_get_type


Description:

[ Version ( since = "1.5.3" ) ]
public string inspect_get_type (string root) throws Error

get type of inspected operating system

This returns the type of the inspected operating system. Currently defined types are:

"linux" Any Linux-based operating system.

"windows" Any Microsoft Windows operating system.

"freebsd" FreeBSD.

"netbsd" NetBSD.

"openbsd" OpenBSD.

"hurd" GNU/Hurd.

"dos" MS-DOS, FreeDOS and others.

"minix" MINIX.

"unknown" The operating system type could not be determined.

Future versions of libguestfs may return other strings here. The caller should be prepared to handle any string.

Please read "INSPECTION" in guestfs(3) for more details.

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error