Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: > 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 <stefa...@linux.vnet.ibm.com> > --- > blockdev.c | 6 ++++++ > hmp-commands.hx | 5 +++-- > qemu-config.c | 4 ++++ > qemu-options.hx | 9 ++++++++- > 4 files changed, 21 insertions(+), 3 deletions(-) > > diff --git a/blockdev.c b/blockdev.c > index 0827bf7..1dd0f23 100644 > --- a/blockdev.c > +++ b/blockdev.c > @@ -236,6 +236,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) > const char *devaddr; > DriveInfo *dinfo; > int snapshot = 0; > + int copy_on_read;
Another s/int/bool/ :-) Kevin