commit | 8a4266144ebffceb8fda2a5feb03d23c535923d4 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Fri Jul 16 17:17:01 2010 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Aug 03 15:57:22 2010 +0200 |
tree | 6cb65e986906fe9176ff54715fdb4305a39286f1 | |
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>