diff options
author | Programmingkid <programmingkidx@gmail.com> | 2015-11-20 19:17:48 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-11-25 14:27:43 +0100 |
commit | 98caa5bc0083ed4fe4833addd3078b56ce2f6cfa (patch) | |
tree | aaf4eaf1ff797ee530bbb6b6c94cebaedb0cacad /qemu-img.c | |
parent | 8e37ca6d0be8aae2887c167da783fd2d9536c962 (diff) |
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 <programmingkidx@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions