diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-11-17 13:40:32 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-05 14:51:38 +0100 |
commit | fb0490f69feb96b7e92457f176dc834ff0b00b09 (patch) | |
tree | 78f832101d9988753dac64f1f47946f2fa306a97 /qemu-config.c | |
parent | ab1859218a95977dc6881fcccce328d8146a6bdb (diff) |
block: add -drive copy-on-read=on|off
This patch adds the -drive copy-on-read=on|off command-line option:
copy-on-read=on|off
copy-on-read is "on" or "off" and enables whether to copy read backing
file sectors into the image file. Copy-on-read avoids accessing the
same backing file sectors repeatedly and is useful when the backing
file is over a slow network. By default copy-on-read is off.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 1aa080fbcb..18f30204a1 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -109,6 +109,10 @@ static QemuOptsList qemu_drive_opts = { .name = "bps_wr", .type = QEMU_OPT_NUMBER, .help = "limit write bytes per second", + },{ + .name = "copy-on-read", + .type = QEMU_OPT_BOOL, + .help = "copy read data from backing file into image file", }, { /* end of list */ } }, |