aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-05-17 18:04:06 +0200
committerKevin Wolf <kwolf@redhat.com>2011-06-08 10:39:32 +0200
commita659979328fb6d4d6100d398f5bd9a2310c3e169 (patch)
tree8d465d20ea1efc82134941d9a589c4b224ce4b3b /qemu-io.c
parent69c38b8fcec823da05f98f6ea98ec2b0013d64e2 (diff)
downloadqemu-a659979328fb6d4d6100d398f5bd9a2310c3e169.zip
qemu-a659979328fb6d4d6100d398f5bd9a2310c3e169.tar.gz
qemu-a659979328fb6d4d6100d398f5bd9a2310c3e169.tar.bz2
block: clarify the meaning of BDRV_O_NOCACHE
Change BDRV_O_NOCACHE to only imply bypassing the host OS file cache, but no writeback semantics. All existing callers are changed to also specify BDRV_O_CACHE_WB to give them writeback semantics. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-io.c b/qemu-io.c
index 4470e49..dd4ebf5 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1655,7 +1655,7 @@ open_f(int argc, char **argv)
flags |= BDRV_O_SNAPSHOT;
break;
case 'n':
- flags |= BDRV_O_NOCACHE;
+ flags |= BDRV_O_NOCACHE | BDRV_O_CACHE_WB;
break;
case 'r':
readonly = 1;
@@ -1751,7 +1751,7 @@ int main(int argc, char **argv)
flags |= BDRV_O_SNAPSHOT;
break;
case 'n':
- flags |= BDRV_O_NOCACHE;
+ flags |= BDRV_O_NOCACHE | BDRV_O_CACHE_WB;
break;
case 'c':
add_user_command(optarg);