Received: from eggs.gnu.org ([140.186.70.92]:39093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPy8O-0006sU-Jj for qemu-devel@nongnu.org; Fri, 27 May 2011 10:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPy8N-0006DB-Ky for qemu-devel@nongnu.org; Fri, 27 May 2011 10:35:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPy8N-0006D7-B7 for qemu-devel@nongnu.org; Fri, 27 May 2011 10:35:27 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4REZQYZ032328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 May 2011 10:35:26 -0400 From: Markus Armbruster References: <20110526152929.36c15abf@doriath> <20110527112916.GA31810@amit-x200.redhat.com> <20110527113430.GB31810@amit-x200.redhat.com> <20110527124008.GA2461@amit-x200.redhat.com> <20110527103935.4a9b652e@doriath> <20110527134112.GK22589@redhat.com> Date: Fri, 27 May 2011 16:35:24 +0200 In-Reply-To: <20110527134112.GK22589@redhat.com> (Daniel P. Berrange's message of "Fri, 27 May 2011 14:41:12 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] block bug: tray status is not updated (and/or guest ignores it) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Amit Shah , kwolf@redhat.com, qemu-devel , Luiz Capitulino "Daniel P. Berrange" writes: > On Fri, May 27, 2011 at 10:39:35AM -0300, Luiz Capitulino wrote: >> On Fri, 27 May 2011 18:10:08 +0530 >> Amit Shah wrote: [...] >> > What's weird though is 'eject' in the monitor makes the cdrom go away >> > -- a subsequent mount in the guest results in a no medium error. I >> > thought we had solved that, Markus? >> > >> > By not doing a bdrv_close() in the do_eject()->eject_device() call >> > path this starts working as expected. >> >> Yes, also note that with the -f option eject is capable of purging >> any block device. I wonder if libvirt (or any client) relies on this. > > libvirt will only issue 'eject' on devices which are CDROMs, or Floppy, > never hard disks, etc. Any use of -f? Recommend to stay away from it. https://bugzilla.redhat.com/show_bug.cgi?id=676528