Received: from eggs.gnu.org ([140.186.70.92]:46136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPy3k-0005YJ-SS for qemu-devel@nongnu.org; Fri, 27 May 2011 10:30:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPy3g-0005Tw-1F for qemu-devel@nongnu.org; Fri, 27 May 2011 10:30:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPy3f-0005Tm-Nz for qemu-devel@nongnu.org; Fri, 27 May 2011 10:30:35 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4REUYmb017867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 May 2011 10:30:35 -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> Date: Fri, 27 May 2011 16:30:32 +0200 In-Reply-To: <20110527124008.GA2461@amit-x200.redhat.com> (Amit Shah's message of "Fri, 27 May 2011 18:10:08 +0530") 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: Amit Shah Cc: kwolf@redhat.com, qemu-devel , Luiz Capitulino Amit Shah writes: [...] > 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? You fell into QEMU's "let's overload names until everybody's hopelessly confused" trap. You're in good company. Monitor command "eject" does *not* manipulate the tray. It cuts the connection between the block device guest part and host part. Block devices without a host part look like "no medium" to the guest. Running /usr/bin/eject does manipulate the tray. When you open, then close the tray, you get the same medium back. IIRC, running mount in the guest closes the tray automatically. [...]