block: Rename blk_write_zeroes()
Commit 983a1600 changed the semantics of blk_write_zeroes() to be byte-based rather than sector-based, but did not change the name, which is an open invitation for other code to misuse the function. Renaming to pwrite_zeroes() makes it more in line with other byte-based interfaces, and will help make it easier to track which remaining write_zeroes interfaces still need conversion. Reported-by:Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Eric Blake <eblake@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Max Reitz <mreitz@redhat.com>
Showing
- block/block-backend.c 7 additions, 7 deletionsblock/block-backend.c
- block/parallels.c 2 additions, 2 deletionsblock/parallels.c
- hw/scsi/scsi-disk.c 1 addition, 1 deletionhw/scsi/scsi-disk.c
- include/sysemu/block-backend.h 7 additions, 7 deletionsinclude/sysemu/block-backend.h
- qemu-img.c 2 additions, 2 deletionsqemu-img.c
- qemu-io-cmds.c 11 additions, 11 deletionsqemu-io-cmds.c
Loading
Please register or sign in to comment