From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAeqC-00034i-Nz for qemu-devel@nongnu.org; Thu, 02 Jul 2015 09:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAeqB-0007aO-Rq for qemu-devel@nongnu.org; Thu, 02 Jul 2015 09:47:48 -0400 References: <55952D97.7040009@redhat.com> From: Paolo Bonzini Message-ID: <559540F6.9090800@redhat.com> Date: Thu, 2 Jul 2015 15:47:34 +0200 MIME-Version: 1.0 In-Reply-To: <55952D97.7040009@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , Stefan Hajnoczi , Programmingkid Cc: Kevin Wolf , Peter Maydell , John Snow , qemu-devel qemu-devel , Qemu-block On 02/07/2015 14:24, Laurent Vivier wrote: > > #ifdef __FreeBSD__ > if (S_ISCHR(st.st_mode)) { > /* > * The file is a char device (disk), which on FreeBSD isn't behind > * a pager, so force all requests to be aligned. This is needed > * so QEMU makes sure all IO operations on the device are aligned > * to sector size, or else FreeBSD will reject them with EINVAL. > */ > s->needs_alignment = true; > } > #endif So on FreeBSD and Apple /dev/r* is the equivalent of BDRV_O_NO_CACHE? Paolo