Adds command to list disks of the VM. The patch does compile on master but to work properly it requires changes to qemu-ga by Thomas Huth in series: Allow guest-get-fsinfo also for non-PCI devices.
v2: - added new struct in API to handle the information - split changes into several patches - for Linux list also slaves, partitions and virtual disks so that the disk hierarchy is preserved - fixed issues pointed out by Michael Tomáš Golembiovský (3): qga: add command guest-get-disks qga: add implementation of guest-get-disks for Linux qga: add implementation of guest-get-disks for Windows qga/commands-posix.c | 241 ++++++++++++++++++++++++++++++++++++++++++- qga/commands-win32.c | 91 ++++++++++++++++ qga/qapi-schema.json | 29 ++++++ 3 files changed, 360 insertions(+), 1 deletion(-) -- 2.25.0