summaryrefslogtreecommitdiffstats
path: root/qga
diff options
context:
space:
mode:
authorMarc-André Lureau2021-04-20 14:58:31 +0200
committerPeter Maydell2021-04-20 17:27:45 +0200
commitbac9b87bd208e1d5adde7d7ba2634f957c22012c (patch)
treed35c70c223914c9bc948f32b56d7f3c6a54795e4 /qga
parenttarget/mips/rel6_translate: Change license to GNU LGPL v2.1 (or later) (diff)
downloadqemu-bac9b87bd208e1d5adde7d7ba2634f957c22012c.tar.gz
qemu-bac9b87bd208e1d5adde7d7ba2634f957c22012c.tar.xz
qemu-bac9b87bd208e1d5adde7d7ba2634f957c22012c.zip
qga: fix guest-get-disks regression
Commit 54aa3de72 ("qapi: Use QAPI_LIST_PREPEND() where possible") inadvertently removed the has_dependencies from the partition disk info, resulting in empty list being returned. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1950833 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-id: 20210420125831.233092-1-marcandre.lureau@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'qga')
-rw-r--r--qga/commands-posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 4299ebd96f..75dbaab68e 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -1376,6 +1376,7 @@ static GuestDiskInfoList *get_disk_partitions(
partition = g_new0(GuestDiskInfo, 1);
partition->name = dev_name;
partition->partition = true;
+ partition->has_dependencies = true;
/* Add parent disk as dependent for easier tracking of hierarchy */
QAPI_LIST_PREPEND(partition->dependencies, g_strdup(disk_dev));