X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_actions.ml;h=a10b7f744c28ea81d5ab47cacf9b7c6a1c940693;hb=4de124debf181ff6af38617b80c2355627e38d35;hp=192df77f48cad73e32347876ce7527bd2a062a27;hpb=cfd9513a54778e1ade82dc1eb351ea32416938a8;p=libguestfs.git diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 192df77..a10b7f7 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1,5 +1,5 @@ (* libguestfs - * Copyright (C) 2009-2010 Red Hat Inc. + * Copyright (C) 2009-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -103,7 +103,7 @@ You probably don't want to call this function.")] *) let non_daemon_functions = test_functions @ [ - ("launch", (RErr, [], []), -1, [FishAlias "run"], + ("launch", (RErr, [], []), -1, [FishAlias "run"; Progress], [], "launch the qemu subprocess", "\ @@ -300,10 +300,14 @@ Get the autosync flag."); [], "set verbose mode", "\ -If C is true, this turns on verbose messages (to C). +If C is true, this turns on verbose messages. Verbose messages are disabled unless the environment variable -C is defined and set to C<1>."); +C is defined and set to C<1>. + +Verbose messages are normally sent to C, unless you +register a callback to send them somewhere else (see +C)."); ("get_verbose", (RBool "verbose", [], []), -1, [], [], @@ -469,19 +473,19 @@ see L."); ["get_trace"]])], "enable or disable command traces", "\ -If the command trace flag is set to 1, then commands are -printed on stderr before they are executed in a format -which is very similar to the one used by guestfish. In -other words, you can run a program with this enabled, and -you will get out a script which you can feed to guestfish -to perform the same set of actions. +If the command trace flag is set to 1, then libguestfs +calls, parameters and return values are traced. If you want to trace C API calls into libguestfs (and other libraries) then possibly a better way is to use the external ltrace(1) command. Command traces are disabled unless the environment variable -C is defined and set to C<1>."); +C is defined and set to C<1>. + +Trace messages are normally sent to C, unless you +register a callback to send them somewhere else (see +C)."); ("get_trace", (RBool "trace", [], []), -1, [], [], @@ -823,6 +827,10 @@ Some Red Hat-derived distro. Red Hat Enterprise Linux and some derivatives. +=item \"slackware\" + +Slackware. + =item \"ubuntu\" Ubuntu. @@ -1105,7 +1113,8 @@ The optional C flag controls whether this call will try to connect to a running virtual machine C process if it sees a suitable EchannelE element in the libvirt XML definition. The default (if the flag is omitted) is never -to try. +to try. See L for more +information. The other optional parameters are passed directly through to C."); @@ -1139,7 +1148,8 @@ The optional C flag controls whether this call will try to connect to a running virtual machine C process if it sees a suitable EchannelE element in the libvirt XML definition. The default (if the flag is omitted) is never -to try. +to try. See L for more +information. The other optional parameters are passed directly through to C."); @@ -1399,7 +1409,8 @@ and the default. Connect to the Unix domain socket I. This method lets you connect to an existing daemon or (using -virtio-serial) to a live guest. +virtio-serial) to a live guest. For more information, see +L. =back"); @@ -1410,6 +1421,36 @@ virtio-serial) to a live guest. "\ Return the current attach method. See C."); + ("inspect_get_product_variant", (RString "variant", [Device "root"], []), -1, [], + [], + "get product variant of inspected operating system", + "\ +This function should only be called with a root device string +as returned by C. + +This returns the product variant of the inspected operating +system. + +For Windows guests, this returns the contents of the Registry key +C +C which is usually a string such as +C or C (other values are possible). This +can be used to distinguish consumer and enterprise versions +of Windows that have the same version number (for example, +Windows 7 and Windows 2008 Server are both version 6.1, +but the former is C and the latter is C). + +For enterprise Linux guests, in future we intend this to return +the product variant such as C, C and so on. But +this is not implemented at present. + +If the product variant could not be determined, then the +string C is returned. + +Please read L for more details. +See also C, +C."); + ] (* daemon_functions are any functions which cause some action @@ -3536,7 +3577,7 @@ This command is mostly useful for interactive sessions. It is I intended that you try to parse the output string. Use C from programs."); - ("du", (RInt64 "sizekb", [Pathname "path"], []), 127, [], + ("du", (RInt64 "sizekb", [Pathname "path"], []), 127, [Progress], [InitISOFS, Always, TestOutputInt ( [["du"; "/directory"]], 2 (* ISO fs blocksize is 2K *))], "estimate file space usage",