diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-07-16 17:17:01 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-08-03 15:57:22 +0200 |
commit | 8a4266144ebffceb8fda2a5feb03d23c535923d4 (patch) | |
tree | 6cb65e986906fe9176ff54715fdb4305a39286f1 /kvm-stub.c | |
parent | 5933e8a96ab9c59cb6b6c80c9db385364a68c959 (diff) |
block: Change bdrv_commit to handle multiple sectors at once
bdrv_commit copies the image to its backing file sector by sector, which
is (surprise!) relatively slow. Let's take a larger buffer and handle more
sectors at once if possible.
With a 1G qcow2 file, this brought the time bdrv_commit takes down from
5:06 min to 1:14 min for me.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'kvm-stub.c')
0 files changed, 0 insertions, 0 deletions