block: Add qemu_{,try_}blockalign0()
commit9ebd84480583bb6d9a7666c079d99ff3266c423d
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:27 +0000 (22 14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (23 15:34 +0200)
treeb067b93364dea1e291fac497fa9125a5f1d85302
parentc5f7c0af473cadb8b0b5fc6d399e4ede1fc9408d
block: Add qemu_{,try_}blockalign0()

These functions call their non-0-counterparts and then fill the
allocated buffer with 0 (if the allocation has been successful).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block.h