From nobody Mon Feb 9 08:49:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1618923833; cv=none; d=zohomail.com; s=zohoarc; b=TWDm01MP0HxZ7Alfyo/Ac6CJGhGRykLileYOQm1KtGKYuezaVjHsop9Y71y1vug7zQgS5tXIwzdfIZ31O+89Dtg+0QZd9oevw7XvL6tnjpjFowoq7klzwb7IvzC3P2CeVhIqvqgxLIMPc2CpuXbFLJCSrlpyCK5EIWjWkNZTs6E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618923833; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Qp7HiN1hguHR0QSsPpHZab4c0WAmzQJOU7eT8RaLZ+U=; b=h3UCCrDExeLsAPjNJZstEovRM3Q2iFHU9EMzrD+qjACBjXEBPWjF5BMqrv4PIyV6jQA15VHrE5iST0sG7c+8XLvZBKrp67RSAkOS9NMI3hz0qcF4cIN4i0MA4DdMD3ybN2dPs8nzSX0auVJwraTCI4pn6cyY2QPE2gIRbgLt3N8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1618923832996285.2956137541503; Tue, 20 Apr 2021 06:03:52 -0700 (PDT) Received: from localhost ([::1]:56578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYq2f-00046V-0C for importer@patchew.org; Tue, 20 Apr 2021 09:03:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYpzE-0002sf-W4 for qemu-devel@nongnu.org; Tue, 20 Apr 2021 09:00:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYpzB-0003UO-HS for qemu-devel@nongnu.org; Tue, 20 Apr 2021 09:00:15 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-524-ZWTNc2RKMhSdXsc6sctYEw-1; Tue, 20 Apr 2021 09:00:02 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ECAEE7F5AB for ; Tue, 20 Apr 2021 12:58:39 +0000 (UTC) Received: from localhost (unknown [10.36.110.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id D22495D9CD; Tue, 20 Apr 2021 12:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618923609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qp7HiN1hguHR0QSsPpHZab4c0WAmzQJOU7eT8RaLZ+U=; b=ezJRoWiI2bqGAjVOOmpoDfOg17UvRLjduBtXSzpF5zpN9R0q6o1TygiJRtZvuYb2IqXMSB Yowqh3iLszVP17eh0mPhpq+ifCEMeLYgI8OnzhyDtdBXeuw80E5GD+MhkulqXtX0BWasd/ QVVo4fpt5eAcUhewjJBmgiqlL8QHwFE= X-MC-Unique: ZWTNc2RKMhSdXsc6sctYEw-1 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Subject: [PATCH for-6.0?] qga: fix guest-get-disks regression Date: Tue, 20 Apr 2021 16:58:31 +0400 Message-Id: <20210420125831.233092-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=marcandre.lureau@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , armbru@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Marc-Andr=C3=A9 Lureau 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=3D1950833 Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- qga/commands-posix.c | 1 + 1 file changed, 1 insertion(+) 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 =3D g_new0(GuestDiskInfo, 1); partition->name =3D dev_name; partition->partition =3D true; + partition->has_dependencies =3D true; /* Add parent disk as dependent for easier tracking of hierarchy */ QAPI_LIST_PREPEND(partition->dependencies, g_strdup(disk_dev)); =20 --=20 2.29.0