diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-01 13:30:48 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-01 16:05:30 +0100 |
commit | 371eabfae3790588ed97c0017d2882799c7ea871 (patch) | |
tree | 0ec9ba15fabe216a0e83bfb5e2e324d92cd1e045 /generator | |
parent | 02971adc3b0f07f3820d0c5e973fabf16d16deb3 (diff) | |
download | libguestfs-371eabfae3790588ed97c0017d2882799c7ea871.tar.gz libguestfs-371eabfae3790588ed97c0017d2882799c7ea871.tar.xz libguestfs-371eabfae3790588ed97c0017d2882799c7ea871.zip |
Generate progress messages during launch.
This commit generates approximate progress messages during the
guestfs_launch call. Currently this code generates:
0 / 12: launch clock starts
3 / 12: appliance created
6 / 12: detected that guest kernel started
9 / 12: detected that /init script is running
12 / 12: launch completed successfully
(Note this is not an ABI and may be changed or removed in a future
version).
Progress messages are only generated at all if 5 seconds have elapsed
since the launch, and they are only generated for the ordinary
appliance (not if using attach-method to attach to an existing virtio
serial port).
Diffstat (limited to 'generator')
-rw-r--r-- | generator/generator_actions.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 75b1cb3b..a324d997 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -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", "\ |