]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
block: char devices on FreeBSD are not behind a pager
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 21 Oct 2014 14:03:03 +0000 (16:03 +0200)
committerMax Reitz <mreitz@redhat.com>
Thu, 23 Oct 2014 14:56:53 +0000 (16:56 +0200)
commit3cad83075c7b847fe0eb6e61316fdf50984d4570
treea286ce1b56987c52fd99bb6dff2079d8fc75ab81
parent1b2dd0bee6bd03045b90c8a7549c8134466b2938
block: char devices on FreeBSD are not behind a pager

Introduce a new flag to mark devices that require requests to be aligned and
replace the usage of BDRV_O_NOCACHE and O_DIRECT with this flag when
appropriate.

If a character device is used as a backend on a FreeBSD host set this flag
unconditionally.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/raw-posix.c