From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45721 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6jze-0006qP-Hb for qemu-devel@nongnu.org; Mon, 04 Apr 2011 09:39:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6jzc-0004kT-Ul for qemu-devel@nongnu.org; Mon, 04 Apr 2011 09:38:58 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:46060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6jzc-0004kE-SK for qemu-devel@nongnu.org; Mon, 04 Apr 2011 09:38:56 -0400 Received: by gwb19 with SMTP id 19so2667901gwb.4 for ; Mon, 04 Apr 2011 06:38:56 -0700 (PDT) Message-ID: <4D99C9ED.3020602@codemonkey.ws> Date: Mon, 04 Apr 2011 08:38:53 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2 3/3] raw-posix: Re-open host CD-ROM after media change References: <1301425482-8722-1-git-send-email-stefanha@linux.vnet.ibm.com> <1301425482-8722-4-git-send-email-stefanha@linux.vnet.ibm.com> <4D99C61E.3080600@redhat.com> In-Reply-To: <4D99C61E.3080600@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Kevin Wolf , Stefan Hajnoczi , Juan Quintela , libvir-list@redhat.com, Stefan Hajnoczi , qemu-devel@nongnu.org, Ryan Harper , Amit Shah On 04/04/2011 08:22 AM, Avi Kivity wrote: > On 04/03/2011 02:57 PM, Stefan Hajnoczi wrote: >> In order for media change to work with Linux host CD-ROM it is >> necessary to reopen the file (otherwise the inode size will not >> refresh, this is an issue with existing kernels). >> > > Maybe we should fix the bug in Linux (and backport as necessary)? > > I think cd-rom assignment is sufficiently obscure that we can require > a fixed kernel instead of providing a workaround. Do reads fail after CD change? Or do they succeed and the size is just reported incorrectly? If it's the later, I'd agree that it needs fixing in the kernel. If it's the former, I'd say it's clearly a feature. Regards, Anthony Liguori