Skip to content

Commit bac9b87

Browse files
elmarcopm215
authored andcommitted
qga: fix guest-get-disks regression
Commit 54aa3de ("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 <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
1 parent ef71c1b commit bac9b87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qga/commands-posix.c

+1
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ static GuestDiskInfoList *get_disk_partitions(
13761376
partition = g_new0(GuestDiskInfo, 1);
13771377
partition->name = dev_name;
13781378
partition->partition = true;
1379+
partition->has_dependencies = true;
13791380
/* Add parent disk as dependent for easier tracking of hierarchy */
13801381
QAPI_LIST_PREPEND(partition->dependencies, g_strdup(disk_dev));
13811382

0 commit comments

Comments
 (0)