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