From d004bd52aacbe9bf43c38fa6cb20a6f241ac64be Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 24 May 2016 16:25:20 -0600 Subject: 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 Signed-off-by: Eric Blake Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block/parallels.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'block/parallels.c') diff --git a/block/parallels.c b/block/parallels.c index 88cface..99fc0f7 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -517,8 +517,8 @@ static int parallels_create(const char *filename, QemuOpts *opts, Error **errp) if (ret < 0) { goto exit; } - ret = blk_write_zeroes(file, BDRV_SECTOR_SIZE, - (bat_sectors - 1) << BDRV_SECTOR_BITS, 0); + ret = blk_pwrite_zeroes(file, BDRV_SECTOR_SIZE, + (bat_sectors - 1) << BDRV_SECTOR_BITS, 0); if (ret < 0) { goto exit; } -- cgit v1.1