From nobody Mon Apr 29 19:08:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1500518471360389.99057580930923; Wed, 19 Jul 2017 19:41:11 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A935237EE9; Thu, 20 Jul 2017 02:41:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 208086684C; Thu, 20 Jul 2017 02:41:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9857D1853E33; Thu, 20 Jul 2017 02:41:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v6K2ZxD9009976 for ; Wed, 19 Jul 2017 22:36:00 -0400 Received: by smtp.corp.redhat.com (Postfix) id E84377F784; Thu, 20 Jul 2017 02:35:59 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E2E8F7F778 for ; Thu, 20 Jul 2017 02:35:58 +0000 (UTC) Received: from m15-114.126.com (m15-114.126.com [220.181.15.114]) by mx1.redhat.com (Postfix) with ESMTP id 53E6C7F6B4 for ; Thu, 20 Jul 2017 02:35:55 +0000 (UTC) Received: from localhost.localdomain.localdomain (unknown [58.213.111.46]) by smtp7 (Coremail) with SMTP id DsmowACnza7CD3BZh+w8MA--.7520S2; Thu, 20 Jul 2017 10:04:56 +0800 (CST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A935237EE9 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=126.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A935237EE9 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (1024-bit key) header.d=126.com header.i=@126.com header.b="ehSg0j6V" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 53E6C7F6B4 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=chen_han_xiao@126.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 53E6C7F6B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=RUpshYq7LpbkxM42iM ZoJHX0Zm9wlUhGTRKuv8BDaBY=; b=ehSg0j6V5D4D2RXz3Tp/ZX3nabSMBVbFEP ffODxGTQ+R5xx5piaV6qqb/s4AcxrxRLqVeFwrhUqY3tu17S3k8jjb5u8Q4GjX3H N6bDhM4tEVr+esay7Zj6EWy9gTwNoz2+gcs63RvuLBh6DN0VHgOOGPPsRWUpL1Un qfeAYXc5c= From: Chen Hanxiao To: libvir-list@redhat.com Date: Thu, 20 Jul 2017 10:02:30 +0800 Message-Id: <1500516150-29212-1-git-send-email-chen_han_xiao@126.com> X-CM-TRANSID: DsmowACnza7CD3BZh+w8MA--.7520S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKFWUAFyxAw4xur4Utr18Krg_yoWxurgE9r WUZFWxXFZ8Ga4Sy3WYvF95Zr1Yv3WFkan5G3ZFgr15Jay7Gr48KFyxZr43tryDWw12kF9r Xr4qgFnYyw1avjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU1ldgtUUUUU== X-Originating-IP: [58.213.111.46] X-CM-SenderInfo: xfkh0spkdqs5xldrqiyswou0bp/1tbitQcbrlYY8w775wAAso X-Greylist: Delayed for 00:30:57 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 20 Jul 2017 02:35:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 20 Jul 2017 02:35:57 +0000 (UTC) for IP:'220.181.15.114' DOMAIN:'m15-114.126.com' HELO:'m15-114.126.com' FROM:'chen_han_xiao@126.com' RCPT:'' X-RedHat-Spam-Score: 1.699 * (DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_PSBL, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD, SPF_PASS) 220.181.15.114 m15-114.126.com 220.181.15.114 m15-114.126.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Chen Hanxiao Subject: [libvirt] [PATCH] LXC: set the right var to NULL X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 20 Jul 2017 02:41:10 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Chen Hanxiao For attaching hosdev, we should set dev->data.hostdev rather than dev->data.disk Signed-off-by: Chen Hanxiao --- src/lxc/lxc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 652e9cb..6a9c528 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -4358,7 +4358,7 @@ lxcDomainAttachDeviceLive(virConnectPtr conn, case VIR_DOMAIN_DEVICE_HOSTDEV: ret =3D lxcDomainAttachDeviceHostdevLive(driver, vm, dev); if (!ret) - dev->data.disk =3D NULL; + dev->data.hostdev =3D NULL; break; =20 default: --=20 2.7.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list