diff options
author | Max Reitz <mreitz@redhat.com> | 2014-08-18 22:07:33 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-08-20 11:51:28 +0200 |
commit | 6c1c8d5d3ebd2e3bcdc89255363c19a88e14ddec (patch) | |
tree | 8e012db1ad1ccc72d782ab4f50adb44b0c961ee2 /block/qcow2.h | |
parent | 02004bd4ba1ace29812e977d3cd0bc20fd6bf677 (diff) | |
download | qemu-6c1c8d5d3ebd2e3bcdc89255363c19a88e14ddec.tar.gz qemu-6c1c8d5d3ebd2e3bcdc89255363c19a88e14ddec.tar.bz2 qemu-6c1c8d5d3ebd2e3bcdc89255363c19a88e14ddec.zip |
qcow2: Add runtime options for cache sizes
Add options for specifying the size of the metadata caches. This can
either be done directly for each cache (if only one is given, the other
will be derived according to a default ratio) or combined for both.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r-- | block/qcow2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/qcow2.h b/block/qcow2.h index 671783defe..6aeb7ea90f 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -91,6 +91,9 @@ #define QCOW2_OPT_OVERLAP_SNAPSHOT_TABLE "overlap-check.snapshot-table" #define QCOW2_OPT_OVERLAP_INACTIVE_L1 "overlap-check.inactive-l1" #define QCOW2_OPT_OVERLAP_INACTIVE_L2 "overlap-check.inactive-l2" +#define QCOW2_OPT_CACHE_SIZE "cache-size" +#define QCOW2_OPT_L2_CACHE_SIZE "l2-cache-size" +#define QCOW2_OPT_REFCOUNT_CACHE_SIZE "refcount-cache-size" typedef struct QCowHeader { uint32_t magic; |