summaryrefslogtreecommitdiffstats
path: root/block.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2012-02-07 14:27:24 +0100
committerKevin Wolf2012-02-09 16:17:50 +0100
commit1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8 (patch)
tree9b15c86f85e8141f3a20cbf9f52ea21a0719e598 /block.h
parentARM devboards: Set arm_sysctl properties before init, not after (diff)
downloadqemu-1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8.tar.gz
qemu-1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8.tar.xz
qemu-1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8.zip
cutils: extract buffer_is_zero() from qemu-img.c
The qemu-img.c:is_not_zero() function checks if a buffer contains all zeroes. This function will come in handy for zero-detection in the block layer, so clean it up and move it to cutils.c. Note that the function now returns true if the buffer is all zeroes. This avoids the double-negatives (i.e. !is_not_zero()) that the old function can cause in callers. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
0 files changed, 0 insertions, 0 deletions