Max Reitz
cdf3bc934a
mirror: Fix bdrv_has_zero_init() use
...
bdrv_has_zero_init() only has meaning for newly created images or image
areas. If the mirror job itself did not create the image, it cannot
rely on bdrv_has_zero_init()'s result to carry any meaning.
This is the case for drive-mirror with mode=existing and always for
blockdev-mirror.
Note that we only have to zero-initialize the target with sync=full,
because other modes actually do not promise that the target will contain
the same data as the source after the job -- sync=top only promises to
copy anything allocated in the top layer, and sync=none will only copy
new I/O. (Which is how mirror has always handled it.)
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190724171239.8764-3-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2019-08-19 17:13:26 +02:00
..
2019-07-05 17:12:30 -03:00
2019-06-16 16:44:44 -04:00
2019-07-23 17:19:11 +01:00
2019-08-15 19:24:10 +02:00
2019-07-01 19:02:10 -03:00
2019-07-30 12:25:43 +02:00
2019-06-04 15:20:41 +02:00
2019-06-12 18:35:26 +02:00
2019-08-16 18:29:43 -04:00
2019-07-10 10:31:22 +01:00
2019-06-12 13:20:20 +02:00
2019-07-04 19:23:07 +01:00
2019-06-12 13:18:33 +02:00
2019-05-20 18:40:02 -04:00
2019-05-20 18:40:02 -04:00
2019-06-16 16:44:44 -04:00
2019-07-12 10:56:26 -04:00
2019-08-17 09:03:35 +02:00
2019-08-15 19:24:10 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-05-21 10:00:41 +02:00
2019-08-15 19:23:59 +02:00
2019-06-03 14:03:02 +02:00
2019-06-12 13:18:33 +02:00
2019-08-15 19:24:10 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-05-23 14:10:31 +02:00
2019-05-21 10:00:46 +02:00
2019-05-08 16:59:28 +02:00
2019-06-12 13:20:20 +02:00
2019-06-12 13:18:33 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-07-02 14:17:15 +02:00
2019-08-17 09:03:35 +02:00
2019-08-15 19:23:59 +02:00
2019-08-16 13:31:53 +02:00
2019-06-12 13:18:33 +02:00
2019-05-21 10:00:32 +02:00
2019-08-15 19:23:59 +02:00
2019-06-03 14:03:02 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-07-02 02:34:55 +02:00
2019-05-21 10:00:27 +02:00
2019-05-08 16:59:28 +02:00
2019-08-15 19:23:59 +02:00
2019-05-21 10:00:37 +02:00
2019-06-12 13:18:33 +02:00
2019-05-26 17:45:02 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:18:33 +02:00
2019-05-08 16:59:28 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-08-16 16:43:46 +01:00
2019-08-16 13:31:52 +02:00
2019-07-19 19:04:49 +02:00
2019-08-16 13:31:52 +02:00
2019-08-19 17:13:26 +02:00
2019-08-15 19:23:59 +02:00
2019-08-15 19:23:59 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:20:20 +02:00
2019-06-12 13:20:20 +02:00
2019-08-16 18:29:43 -04:00
2019-05-08 16:59:28 +02:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-08-16 13:31:53 +02:00
2019-06-12 18:35:17 +02:00
2019-08-16 13:31:52 +02:00
2019-06-03 14:03:00 +02:00
2019-08-16 13:31:52 +02:00
2019-06-18 08:14:17 +02:00
2019-06-12 13:18:33 +02:00
2019-07-05 17:08:03 -03:00
2019-06-03 14:03:02 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-05-13 08:58:55 +02:00
2019-05-08 16:59:28 +02:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-07-04 17:00:32 -04:00
2019-06-12 13:18:33 +02:00
2019-08-15 19:23:59 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-08-15 19:24:10 +02:00
2019-06-12 13:18:33 +02:00
2019-05-20 18:40:02 -04:00
2019-06-12 13:18:33 +02:00