Backup: don't do copy-on-read in before_write_notifier
commit06c3916b35a1cf6db548450a0cfb96983c33c82f
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 8 Sep 2015 03:28:33 +0000 (8 11:28 +0800)
committerJeff Cody <jcody@redhat.com>
Fri, 25 Sep 2015 12:37:07 +0000 (25 08:37 -0400)
tree25f33565d45bed4614ba63dbfc361f74ff153a13
parent9568b511c9f91c3d21ea3e83426d4ee7168c98bb
Backup: don't do copy-on-read in before_write_notifier

We will copy data in before_write_notifier to do backup.
It is a nested I/O request, so we cannot do copy-on-read.

The steps to reproduce it:
1. -drive copy-on-read=on,...  // qemu option
2. drive_backup -f disk0 /path_to_backup.img // monitor command

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Tested-by: Jeff Cody <jcody@redhat.com>
Message-id: 1441682913-14320-3-git-send-email-wency@cn.fujitsu.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/backup.c