commit | 79c053bde9fa40595670ae274d047da07f1df88c | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Tue Feb 07 13:27:26 2012 +0000 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Feb 09 16:17:50 2012 +0100 |
tree | dc859b1ca2cb3345bdc665fca11f9c0cf4b35cf5 | |
parent | f08f2ddae078e8a7683f8b16da8e0cc3029c7b89 [diff] |
block: perform zero-detection during copy-on-read Copy-on-Read populates the image file with data read from a backing image. In order to avoid bloating the image file when all zeroes are read we should scan the buffer and perform an optimized zero write operation. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>