|
| From: | Eric Blake |
| Subject: | Re: [Qemu-devel] [PATCH v2] qga: add mountpoint usage to GuestFilesystemInfo |
| Date: | Wed, 30 May 2018 08:08:33 -0500 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 05/30/2018 04:01 AM, Chen Hanxiao wrote:
From: Chen Hanxiao <address@hidden>
This patch adds support for getting the usage of mounted
filesystem.
It's very useful when we try to monitor guest's filesystem.
Cc: Michael Roth <address@hidden>
Signed-off-by: Chen Hanxiao <address@hidden>
---
v2:
add description in qapi-schema and version numbers
+# @usage: file system usage, integer between 0 and 100 (since 3.0)
I still find this as being too imprecise. Don't throw away data learned from the guest that the client might like to know. Either provide a floating point between 0 and 1, or provide the two actual statvfs() numbers (used and total) directly and let the client perform the division to learn the ratio.
# @disk: an array of disk hardware information that the volume lies on, # which may be empty if the disk type is not supported # # Since: 2.2 ## { 'struct': 'GuestFilesystemInfo', - 'data': {'name': 'str', 'mountpoint': 'str', 'type': 'str', + 'data': {'name': 'str', 'mountpoint': 'str', 'type': 'str', 'usage': 'int', 'disk': ['GuestDiskAddress']} }##
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
| [Prev in Thread] | Current Thread | [Next in Thread] |