inspect_get_major_version
Description:
get major version of inspected operating system
This returns the major version number of the inspected operating system.
Windows uses a consistent versioning scheme which is *not* reflected in the popular public names used by the operating system. Notably the operating system known as "Windows 7" is really version 6.1 (ie. major = 6, minor = 1). You can find out the real versions corresponding to releases of Windows by consulting Wikipedia or MSDN.
If the version could not be determined, then @0 is returned.
Please read "INSPECTION" in guestfs(3) for more details.
Parameters:
this |
A GuestfsSession object |
Returns:
the returned value, or -1 on error |