On 07/03/2018 03:31 AM, Tomáš Golembiovský wrote:
Report total file system size and free space in output of command
"guest-get-fsinfo". Values are optional and it is not an error if they cannot
be retrieved for some reason.
Signed-off-by: Tomáš Golembiovský <tgole...@redhat.com>
---
qga/commands-posix.c | 18 ++++++++++++++++++
qga/commands-win32.c | 16 ++++++++++++++++
qga/qapi-schema.json | 5 ++++-
3 files changed, 38 insertions(+), 1 deletion(-)
+++ b/qga/qapi-schema.json
@@ -848,12 +848,15 @@
# @type: file system type string
# @disk: an array of disk hardware information that the volume lies on,
# which may be empty if the disk type is not supported
+# @size: total number of bytes on the file system (Since 2.13)
+# @free: number of bytes available on the file system (Since 2.13)
s/2.13/3.0/ (if it makes it into today's soft freeze, or 3.1 if not)
#
# Since: 2.2
##
{ 'struct': 'GuestFilesystemInfo',
'data': {'name': 'str', 'mountpoint': 'str', 'type': 'str',
- 'disk': ['GuestDiskAddress']} }
+ 'disk': ['GuestDiskAddress'], '*size': 'uint64',
+ '*free': 'uint64'} }
##
# @guest-get-fsinfo:
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org