Received: from [140.186.70.92] (port=46331 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObVTj-000483-77 for qemu-devel@nongnu.org; Wed, 21 Jul 2010 05:20:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObVTi-0005m3-5I for qemu-devel@nongnu.org; Wed, 21 Jul 2010 05:20:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18606) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObVTh-0005ly-RD for qemu-devel@nongnu.org; Wed, 21 Jul 2010 05:20:38 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6L9KbI2029449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Jul 2010 05:20:37 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v3] Error on O_DIRECT for physical CDROM/DVD drives References: <1279698319-31158-1-git-send-email-Jes.Sorensen@redhat.com> Date: Wed, 21 Jul 2010 11:20:34 +0200 In-Reply-To: <1279698319-31158-1-git-send-email-Jes.Sorensen@redhat.com> (Jes Sorensen's message of "Wed, 21 Jul 2010 09:45:19 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes.Sorensen@redhat.com Cc: qemu-devel@nongnu.org Jes.Sorensen@redhat.com writes: > From: Jes Sorensen > > O_DIRECT (cache=none) requires sector alignment, however the physical > sector size of CDROM/DVD drives is 2048, as opposed to most disk > devices which use 512. QEMU is hard coding 512 all over the place, so > allowing O_DIRECT for CDROM/DVD devices does not work. > > Return -ENOTSUP from cdrom_open() in this case. Good short-term fix.