]> git.ipfire.org Git - thirdparty/qemu.git/commit
qga: add mountpoint usage info to GuestFilesystemInfo
authorChen Hanxiao <chenhanxiao@gmail.com>
Thu, 14 Jun 2018 08:06:06 +0000 (16:06 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 3 Jul 2018 16:38:05 +0000 (11:38 -0500)
commit25b5ff1a860634c2b1463b2882ed02cd55f8ac62
tree42586e15d1dd3b2be37d692c2db67d11e9c4ff0a
parent141b197408ab398c4f474ac1a728ab316e921f2b
qga: add mountpoint usage info to GuestFilesystemInfo

This patch adds support for getting the usage of mounted
filesystem.
The usage of fs stored as used_bytes and total_bytes.
It's very useful when we try to monitor guest's filesystem.

Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
qga/qapi-schema.json