]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Point to VIR_ERR_AGENT_COMMAND_TIMEOUT when setting timeout
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Mar 2025 14:44:35 +0000 (15:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Mar 2025 16:46:08 +0000 (17:46 +0100)
In addition to the error constant appearing add docs hinting that this
new error code can be produced on timeouts.

The most relevant place is to do it when setting the timeout.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
src/libvirt-domain.c

index 35ae6af547a89398f6b49c8c755c51a93a1758e4..b609b9647fb381de5074ba9afce953a581f7d829 100644 (file)
@@ -3068,6 +3068,9 @@ values:
   libvirt daemon),
 * 0 - do not wait at all,
 
+In all guest-agent based APIs when a timeout happens if an actual command was
+send to the guest agent the returned error code will be
+VIR_ERR_AGENT_COMMAND_TIMEOUT.
 
 guestinfo
 ---------
index 05e675f67ab7672a2096679b238999eb8b8e8674..594aa6ed93397b27823b428e46fdecb750b8df39 100644 (file)
@@ -13522,6 +13522,10 @@ int virDomainSetLaunchSecurityState(virDomainPtr domain,
  *   VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT(0): does not wait.
  *   positive value: wait for @timeout seconds
  *
+ * In all guest-agent based APIs when a timeout happens if an actual command
+ * was send to the guest agent the returned error code will be
+ * VIR_ERR_AGENT_COMMAND_TIMEOUT.
+ *
  * Returns 0 on success, -1 on failure
  *
  * Since: 5.10.0