qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] qga: add command guest-get-disks
@ 2020-10-12  8:36 Tomáš Golembiovský
  2020-10-12  8:36 ` [PATCH v4 1/3] " Tomáš Golembiovský
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tomáš Golembiovský @ 2020-10-12  8:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, Michael Roth, Yonggang Luo,
	Tomáš Golembiovský, Marc-André Lureau,
	Philippe Mathieu-Daudé

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.

v4:
- 2/3: don't leak syspath in build_guest_fsinfo_for_device()
- 3/3:
  - added ERRP_GUARD
  - don't loop forever when qga fails to get device information details

v3:
- renamed "slaves" field to "dependents"
- comments from Marc and Daniel
- 2/3: factored out pieces of code into separate functions

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 | 290 ++++++++++++++++++++++++++++++++++++++++++-
 qga/commands-win32.c | 101 +++++++++++++++
 qga/qapi-schema.json |  31 +++++
 3 files changed, 417 insertions(+), 5 deletions(-)

-- 
2.28.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-14  9:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-12  8:36 [PATCH v4 0/3] qga: add command guest-get-disks Tomáš Golembiovský
2020-10-12  8:36 ` [PATCH v4 1/3] " Tomáš Golembiovský
2020-10-12  8:36 ` [PATCH v4 2/3] qga: add implementation of guest-get-disks for Linux Tomáš Golembiovský
2020-10-13  7:26   ` Marc-André Lureau
2020-10-14  9:34     ` Tomáš Golembiovský
2020-10-12  8:36 ` [PATCH v4 3/3] qga: add implementation of guest-get-disks for Windows Tomáš Golembiovský

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).