qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qga: report disk size and free space


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] qga: report disk size and free space
Date: Tue, 3 Jul 2018 11:24:03 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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ý <address@hidden>
---
  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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]