commit | c3993cdca39c252d65bbbcc234d8d242dc9bd693 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Thu Aug 04 12:26:51 2011 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Aug 23 14:15:17 2011 +0200 |
tree | fd31efb3149956a7fd09de821851b52ce2e20580 | |
parent | 12888904fe7f0231e853072805fb2317ec60c510 [diff] |
block: parse cache mode flags in a single place This patch introduces bdrv_parse_cache_flags() which sets open flags given a cache mode. Previously this was duplicated in blockdev.c and qemu-img.c. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>