From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPvJL-0001EE-KT for qemu-devel@nongnu.org; Fri, 27 May 2011 07:34:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPvJK-0005OU-OY for qemu-devel@nongnu.org; Fri, 27 May 2011 07:34:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPvJK-0005OK-Gy for qemu-devel@nongnu.org; Fri, 27 May 2011 07:34:34 -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 p4RBYXdj025054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 May 2011 07:34:33 -0400 Date: Fri, 27 May 2011 17:04:30 +0530 From: Amit Shah Message-ID: <20110527113430.GB31810@amit-x200.redhat.com> References: <20110526152929.36c15abf@doriath> <20110527112916.GA31810@amit-x200.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110527112916.GA31810@amit-x200.redhat.com> 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: Luiz Capitulino Cc: kwolf@redhat.com, Markus Armbruster , qemu-devel On (Fri) 27 May 2011 [17:01:35], Amit Shah wrote: > On (Thu) 26 May 2011 [15:29:29], Luiz Capitulino wrote: > > > > I'm testing with qemu.git (HEAD aa29141d84d), procedure: > > > > 1. Start a VM with: > > > > # qemu -hda disks/test.img -enable-kvm -m 1G -cdrom Fedora-14-x86_64-DVD.iso > > > > 2. Then inside the guest run: > > > > # eject /dev/sr0 && mount /dev/sr0 /mnt > > > > Results: > > > > Actual: The cdrom is successfully mounted > > Expected: The cdrom is not mounted (mount fails, medium not found) > > Really? That's what you expect? :-) > > Where will the medium go? > > What happens is mount auto-closes the tray and mounts whatever is > there, which is the image you provided. Works as expected, IMO. > > Can you try this with a physical cdrom drive where the tray can be > opened/closed by software commands? It should give you a similar > behaviour. BTW in case mount doesn't auto-close the tray, it should fail with a 'tray open' message, not with a medium not found message. I'm checking the code to see what's happening in the meanwhile. Amit