]> git.proxmox.com Git - qemu.git/commit - blockdev.c
blockdev: Split up 'cache' option
authorKevin Wolf <kwolf@redhat.com>
Thu, 18 Jul 2013 14:31:25 +0000 (16:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 26 Jul 2013 20:01:31 +0000 (22:01 +0200)
commit29c4e2b50d95f4a15c3dd62b39f3402f05a34907
tree2a6268ec6ec992dcffae74cd6dc8ad1544ebde74
parent0f227a947004aa9043d4386f4a47d6739499b88f
blockdev: Split up 'cache' option

The old 'cache' option really encodes three different boolean flags into
a cache mode name, without providing all combinations. Make them three
separate options instead and translate the old option to the new ones
for drive_init().

The specific boolean options take precedence if the old cache option is
specified as well, so the following options are equivalent:

-drive file=x,cache=none,cache.no-flush=true
-drive file=x,cache.writeback=true,cache.direct=true,cache.no-flush=true

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
blockdev.c