]> Git Repo - qemu.git/commit - block/raw-posix.c
raw-posix.c: Make GetBSDPath() handle caching options
authorProgrammingkid <[email protected]>
Sat, 21 Nov 2015 00:17:48 +0000 (19:17 -0500)
committerKevin Wolf <[email protected]>
Wed, 25 Nov 2015 13:27:43 +0000 (14:27 +0100)
commit98caa5bc0083ed4fe4833addd3078b56ce2f6cfa
treeaaf4eaf1ff797ee530bbb6b6c94cebaedb0cacad
parent8e37ca6d0be8aae2887c167da783fd2d9536c962
raw-posix.c: Make GetBSDPath() handle caching options

Add support for caching options that can be specified from the command
line.

The CD-ROM raw char device bypasses the host page cache and therefore
has alignment requirements.  Alignment probing is necessary so only use
the raw char device if BDRV_O_NOCACHE is set.

This patch fixes -cdrom /dev/cdrom on Mac OS X hosts, where bdrv_read()
used to fail due to misaligned requests during image format probing.

Signed-off-by: John Arbuckle <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/raw-posix.c
This page took 0.024272 seconds and 4 git commands to generate.