mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virsh: Implement VIR_DOMAIN_JOB_DISK_TEMP_(USED|TOTAL) in cmdDomjobinfo
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2a2f26d321
commit
c3e18c13ca
@ -6388,6 +6388,24 @@ cmdDomjobinfo(vshControl *ctl, const vshCmd *cmd)
|
||||
vshPrint(ctl, "%-17s %-13d\n", _("Auto converge throttle:"), ivalue);
|
||||
}
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_DISK_TEMP_USED,
|
||||
&value)) < 0) {
|
||||
goto save_error;
|
||||
} else if (rc) {
|
||||
val = vshPrettyCapacity(value, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("Temporary disk space use:"), val, unit);
|
||||
}
|
||||
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams,
|
||||
VIR_DOMAIN_JOB_DISK_TEMP_TOTAL,
|
||||
&value)) < 0) {
|
||||
goto save_error;
|
||||
} else if (rc) {
|
||||
val = vshPrettyCapacity(value, &unit);
|
||||
vshPrint(ctl, "%-17s %-.3lf %s\n", _("Temporary disk space total:"), val, unit);
|
||||
}
|
||||
|
||||
ret = true;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user