X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=2012-dublin%2F0200-inspect.html;fp=2012-dublin%2F0200-inspect.html;h=90072b15dabcd8de9cdd34172f6567edd9723490;hb=0cd762708e3d665bf982dc36ce8661eb982bf939;hp=0000000000000000000000000000000000000000;hpb=252dcb3c52fa6ff875a1eea2c3e6ffcb351b58a6;p=libguestfs-talks.git diff --git a/2012-dublin/0200-inspect.html b/2012-dublin/0200-inspect.html new file mode 100644 index 0000000..90072b1 --- /dev/null +++ b/2012-dublin/0200-inspect.html @@ -0,0 +1,30 @@ + + + + +
+Create handle — +Inspect — +Modify — +Shutdown
+ ++roots = g.inspect_os () +if len (roots) == 0: + raise (Error ("no operating systems found")) +if len (roots) > 1: + raise (Error ("multi-boot operating system")) +root = roots[0] + +type = g.inspect_get_type (root) +distro = g.inspect_get_distro (root) +major = g.inspect_get_major_version (root) +minor = g.inspect_get_minor_version (root) + +mps = g.inspect_get_mountpoints (root) ++ +