From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLji2-0004m2-MU for qemu-devel@nongnu.org; Fri, 18 Dec 2009 15:45:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLjhv-0004ZO-3R for qemu-devel@nongnu.org; Fri, 18 Dec 2009 15:45:55 -0500 Received: from [199.232.76.173] (port=50334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLjht-0004Yp-2g for qemu-devel@nongnu.org; Fri, 18 Dec 2009 15:45:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39888) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLjhp-0006O3-Ju for qemu-devel@nongnu.org; Fri, 18 Dec 2009 15:45:46 -0500 Date: Fri, 18 Dec 2009 18:45:33 -0200 From: Luiz Capitulino Message-ID: <20091218184533.5807c7d7@doriath> In-Reply-To: <20091218202240.GL6538@blackpad.lan.raisama.net> References: <1259858001-1273-1-git-send-email-ehabkost@redhat.com> <1259858001-1273-2-git-send-email-ehabkost@redhat.com> <1261162670-sup-2248@blackpad.lan.raisama.net> <20091218181527.4462c2e7@doriath> <20091218202240.GL6538@blackpad.lan.raisama.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v2 STABLE] monitor: allow device to be ejected if no disk is inserted List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Naphtali Sprei , qemu-devel On Fri, 18 Dec 2009 18:22:41 -0200 Eduardo Habkost wrote: > On Fri, Dec 18, 2009 at 06:15:27PM -0200, Luiz Capitulino wrote: > > On Fri, 18 Dec 2009 17:07:43 -0200 > > Eduardo Habkost wrote: > > > > > When using a file, eject works as expected. But when using a host cdrom device: > > > > > > (qemu) change ide1-cd0 /dev/cdrom > > > (qemu) info block > > > ide1-cd0: type=cdrom removable=1 locked=0 file=/dev/cdrom ro=0 drv=host_cdrom encrypted=0 > > > (qemu) eject ide1-cd0 > > > (qemu) info block > > > ide1-cd0: type=cdrom removable=1 locked=0 file=/dev/cdrom ro=0 drv=host_cdrom encrypted=0 > > > > Sorry for only taking a look at this now, but it works for me. > > Do you have a disk on your CD-ROM drive? Yeah, I had.. Quickly tested you patch and it fixed the problem to me.