[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 5279ef: block: mirror - fix full sync mode wh
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 5279ef: block: mirror - fix full sync mode when target doe... |
Date: |
Fri, 02 Oct 2015 04:00:07 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 5279efebcf8f8fbf2ed2feed63cdb9d375c7cd07
https://github.com/qemu/qemu/commit/5279efebcf8f8fbf2ed2feed63cdb9d375c7cd07
Author: Jeff Cody <address@hidden>
Date: 2015-10-01 (Thu, 01 Oct 2015)
Changed paths:
M block/mirror.c
Log Message:
-----------
block: mirror - fix full sync mode when target does not support zero init
During mirror, if the target device does not support zero init, a
mirror may result in a corrupted image for sync="full" mode.
This is due to how the initial dirty bitmap is set up prior to copying
data - we did not mark sectors as dirty that are unallocated. This
means those unallocated sectors are skipped over on the target, and for
a device without zero init, invalid data may reside in those holes.
If both of the following conditions are true, then we will explicitly
mark all sectors as dirty:
1.) sync = "full"
2.) bdrv_has_zero_init(target) == false
If the target does support zero init, but a target image is passed in
with data already present (i.e. an "existing" image), it is assumed the
data present in the existing image is valid data for those sectors.
Reviewed-by: Paolo Bonzini <address@hidden>
Message-id: address@hidden
Signed-off-by: Jeff Cody <address@hidden>
Commit: ff770b07f34d28b79013a83989bd6c85f8f16b2f
https://github.com/qemu/qemu/commit/ff770b07f34d28b79013a83989bd6c85f8f16b2f
Author: Peter Maydell <address@hidden>
Date: 2015-10-02 (Fri, 02 Oct 2015)
Changed paths:
M block/mirror.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into
staging
# gpg: Signature made Thu 01 Oct 2015 20:02:33 BST using RSA key ID C0DE3057
# gpg: Good signature from "Jeffrey Cody <address@hidden>"
# gpg: aka "Jeffrey Cody <address@hidden>"
# gpg: aka "Jeffrey Cody <address@hidden>"
* remotes/cody/tags/block-pull-request:
block: mirror - fix full sync mode when target does not support zero init
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/5250ced83173...ff770b07f34d
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 5279ef: block: mirror - fix full sync mode when target doe...,
GitHub <=