Received: from eggs.gnu.org ([140.186.70.92]:45082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZxw-0006jw-DS for qemu-devel@nongnu.org; Mon, 06 Jun 2011 09:35:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTZxu-0000Nu-6n for qemu-devel@nongnu.org; Mon, 06 Jun 2011 09:35:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZxt-0000Nh-Gu for qemu-devel@nongnu.org; Mon, 06 Jun 2011 09:35:33 -0400 From: Markus Armbruster References: <1307127842-12102-1-git-send-email-lcapitulino@redhat.com> <1307127842-12102-6-git-send-email-lcapitulino@redhat.com> Date: Mon, 06 Jun 2011 15:35:30 +0200 In-Reply-To: <1307127842-12102-6-git-send-email-lcapitulino@redhat.com> (Luiz Capitulino's message of "Fri, 3 Jun 2011 16:03:57 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: kwolf@redhat.com, amit.shah@redhat.com, aliguori@us.ibm.com, qemu-devel@nongnu.org Luiz Capitulino writes: > This command opens a removable media drive's tray. It's only available > in QMP. > > The do_tray_open() function is split into two smaller functions because > next commits will also use them. > > Please, check the command's documentation (being introduced in this > commit) for a detailed description. > > XXX: Should we return an error if the tray is already open? Use case? For what it's worth, Linux ioctl CDROMCLOSETRAY appears to return success when it does nothing.