Received: from eggs.gnu.org ([2001:4830:134:3::10]:36222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4A5-0002YZ-O3 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:02:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai4A2-0002xG-ID for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:02:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4A2-0002xC-D1 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:02:38 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 02F31163E94 for ; Mon, 21 Mar 2016 18:02:38 +0000 (UTC) From: Markus Armbruster References: <1456151945-11225-1-git-send-email-pbonzini@redhat.com> <1456151945-11225-4-git-send-email-pbonzini@redhat.com> <87k2kvzu0z.fsf@blackfin.pond.sub.org> <56F01F8A.2090902@redhat.com> <87shzj68n2.fsf@blackfin.pond.sub.org> <20160321173957.GC4985@noname.redhat.com> Date: Mon, 21 Mar 2016 19:02:34 +0100 In-Reply-To: <20160321173957.GC4985@noname.redhat.com> (Kevin Wolf's message of "Mon, 21 Mar 2016 18:39:57 +0100") Message-ID: <87mvpr1zgl.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Paolo Bonzini , qemu-devel@nongnu.org, Max Reitz Kevin Wolf writes: > Am 21.03.2016 um 18:30 hat Markus Armbruster geschrieben: >> Paolo Bonzini writes: >> >> > On 21/03/2016 17:15, Markus Armbruster wrote: >> >> * Explicitly with x-blockdev-del >> >> >> >> Fails unless no other reference exists. Where is the legacy_dinfo >> >> released? >> > >> > Can a -drive block device be deleted with x-blockdev-del even?!? >> >> When I wrote my review, I forgot that I expect x-blockdev-del to accept >> only backends created with blockdev-add. With that, my question is >> indeed moot. >> >> However, I've now tested my expectation, and it turned out to be wrong. >> I'm inclined to call that a bug. > > Yes. > >> > Shall I add a check to x-blockdev-del that gives an error if the >> > BlockBackend has a DriveInfo attached? >> >> Yes, please. But do double-check with Kevin & Max, who might have >> different ideas on blockdev-add/del than I do. > > I'm pretty sure that I said that failing on -drive/drive_add created > BlockBackends was a requirement for x-blockdev-del. Apparently I failed > to catch the bug in the review then. > > So go ahead and let's fix it now. Yes, please.