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-03-12 09:46:58 -07:00
2019-07-23 17:19:11 +01:00
2019-02-26 14:08:03 +00:00
2018-11-13 10:47:59 +00: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-03-14 16:02:13 +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-03-12 07:40:59 +01:00
2019-01-14 14:52:30 +00:00
2019-01-14 14:52:30 +00:00
2018-10-24 19:03:37 +01:00
2019-06-16 16:44:44 -04:00
2019-07-12 10:56:26 -04:00
2019-01-22 05:14:32 +01:00
2019-04-12 12:40:35 +02:00
2019-02-22 09:32:32 +00:00
2019-08-17 09:03:35 +02:00
2019-03-07 22:05:54 +01:00
2019-01-24 15:20:59 +01:00
2018-12-11 15:45:22 -02:00
2018-10-05 16:27:09 +04: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-02-26 09:21:25 +11:00
2019-01-11 11:45:00 +01: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-01-22 05:14:32 +01:00
2019-06-12 13:18:33 +02:00
2019-03-06 10:10:36 +01:00
2019-05-23 14:10:31 +02:00
2019-05-21 10:00:46 +02:00
2019-01-22 06:26:32 +01:00
2019-03-07 16:50:04 +01:00
2019-05-08 16:59:28 +02:00
2019-06-12 13:20:20 +02:00
2019-03-06 10:10:36 +01:00
2019-03-06 10:10:36 +01: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-03-07 22:16:22 +01: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-02-01 15:32:17 +00: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-03-12 14:33:05 +11:00
2019-03-12 16:07:14 +11:00
2018-10-19 13:44:03 +02:00
2018-12-17 15:36:40 +01:00
2019-03-12 16:07:14 +11:00
2019-05-21 10:00:27 +02:00
2019-01-14 14:52:30 +00: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-03-07 17:28:07 +01:00
2019-03-07 22:16:22 +01:00
2019-03-08 16:31:34 +00: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-03-07 22:16:22 +01:00
2018-12-14 13:30:54 +00: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-03-05 14:43:11 +01:00
2019-03-07 22:16:22 +01:00
2019-06-12 13:18:33 +02:00
2019-01-11 13:57:25 +01:00
2019-06-12 13:18:33 +02:00
2019-06-12 13:18:33 +02:00
2018-10-24 19:03:37 +01:00
2018-12-13 19:10:06 +01: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-03-18 10:48:06 -05:00
2019-03-11 16:33:49 +01:00
2018-09-26 08:55:54 -07:00
2019-06-12 18:35:17 +02:00
2019-02-18 14:44:04 +01:00
2019-03-05 14:43:11 +01:00
2019-03-05 14:43:11 +01:00
2019-01-11 15:46:55 +01:00
2019-08-16 13:31:52 +02:00
2018-12-13 19:10:06 +01:00
2019-06-03 14:03:00 +02:00
2019-08-16 13:31:52 +02:00
2019-04-02 13:52:02 +01: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
2018-10-30 13:53:15 -04:00
2018-12-20 10:29:08 +01:00
2019-03-07 16:50:04 +01: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