Max Reitz
2d97fde439
block: Use blk_make_empty() after commits
...
bdrv_commit() already has a BlockBackend pointing to the BDS that we
want to empty, it just has the wrong permissions.
qemu-img commit has no BlockBackend pointing to the old backing file
yet, but introducing one is simple.
After this commit, bdrv_make_empty() is the only remaining caller of
BlockDriver.bdrv_make_empty().
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200429141126.85159-5-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[kwolf: Fixed up reference output for 098]
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2020-05-18 19:05:25 +02:00
..
2020-05-05 13:17:36 +02:00
2019-12-18 11:20:57 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-03-24 12:05:31 +01:00
2020-03-24 12:05:31 +01:00
2020-03-24 12:05:31 +01:00
2020-01-30 21:01:40 +00:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-03-26 14:44:33 +01:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:06 +01:00
2020-02-18 10:53:56 +01:00
2020-02-18 10:53:56 +01:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:12:48 +01:00
2020-04-07 13:51:09 +02:00
2020-04-07 13:51:09 +02:00
2020-01-06 13:43:07 +01:00
2019-12-18 11:20:57 +01:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-08 13:26:35 +02:00
2020-05-08 13:26:35 +02:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:12:48 +01:00
2020-01-30 21:01:40 +00:00
2020-05-08 13:26:35 +02:00
2020-04-07 13:51:09 +02:00
2020-05-13 14:20:31 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-05-08 13:26:35 +02:00
2020-05-13 14:20:31 +02:00
2020-03-24 11:57:38 +01:00
2020-05-13 14:20:31 +02:00
2020-03-24 11:57:38 +01:00
2020-01-06 13:43:07 +01:00
2020-01-30 21:01:40 +00:00
2020-01-06 13:43:07 +01:00
2020-05-08 13:26:35 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-05-18 19:05:25 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-18 19:05:24 +02:00
2020-05-18 19:05:24 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-08 13:26:35 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-02-20 16:43:42 +01:00
2020-02-20 16:43:42 +01:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-02-06 13:47:45 +01:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:12:48 +01:00
2020-05-05 13:17:36 +02:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-03-26 14:52:43 +01:00
2020-03-26 14:52:43 +01:00
2020-02-20 16:43:42 +01:00
2020-01-06 13:43:07 +01:00
2020-01-27 17:19:53 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-02-20 16:43:42 +01:00
2020-05-08 13:26:35 +02:00
2020-05-05 13:17:36 +02:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:12:48 +01:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-03-11 15:54:38 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:12:48 +01:00
2019-11-26 14:18:01 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-04-07 13:51:09 +02:00
2020-03-11 12:42:29 +01:00
2020-03-11 12:42:29 +01:00
2020-03-11 12:42:29 +01:00
2020-01-30 21:01:40 +00:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-02-06 13:47:45 +01:00
2020-01-30 21:01:40 +00:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:12:48 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-13 14:20:31 +02:00
2020-02-07 15:12:48 +01:00
2020-01-30 21:01:40 +00:00
2020-01-30 21:01:40 +00:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-02-07 15:12:48 +01:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-02-25 20:20:09 +00:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-01-27 17:19:53 +01:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-02-05 17:22:13 -06:00
2020-02-05 17:22:13 -06:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-05-18 19:05:24 +02:00
2020-05-18 19:05:24 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-01-06 13:43:07 +01:00
2020-04-30 17:51:06 +02:00
2020-04-30 17:51:06 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-05-05 13:17:36 +02:00
2020-02-07 15:12:48 +01:00
2020-05-05 13:17:36 +02:00
2020-02-20 16:43:42 +01:00
2020-02-20 16:43:42 +01:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-01-06 13:43:07 +01:00
2020-02-07 15:15:16 +01:00
2019-12-19 14:32:43 +01:00
2020-02-06 13:47:45 +01:00
2020-01-06 13:43:07 +01:00
2019-12-19 13:20:10 +01:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-05-05 13:17:36 +02:00
2020-03-24 11:57:38 +01:00
2019-12-18 11:20:57 +01:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-02-07 15:12:48 +01:00
2020-01-27 17:19:53 +01:00
2020-03-11 15:54:38 +01:00
2020-03-11 15:54:38 +01:00
2020-05-08 13:26:35 +02:00
2020-05-08 13:26:35 +02:00
2020-02-20 16:43:42 +01:00
2020-02-20 16:43:42 +01:00
2020-02-20 16:43:42 +01:00
2020-02-20 16:43:42 +01:00
2020-05-13 14:20:31 +02:00
2020-05-13 14:20:31 +02:00
2020-03-11 12:42:29 +01:00
2020-03-11 12:42:29 +01:00
2020-03-24 12:05:31 +01:00
2020-03-24 12:05:31 +01:00
2020-04-07 13:51:09 +02:00
2020-04-07 13:51:09 +02:00
2020-05-08 13:26:35 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:24 +02:00
2020-04-07 13:51:09 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-02-07 15:15:16 +01:00
2020-05-05 13:17:36 +02:00
2020-02-07 15:15:16 +01:00
2020-02-07 15:15:16 +01:00