[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-block
Subject:    Re: [Qemu-block] [Qemu-devel] [PATCH v4 13/14] block: Switch blk_write_zeroes() to byte interface
From:       Eric Blake <eblake () redhat ! com>
Date:       2016-04-29 23:21:24
Message-ID: 5723EC74.404 () redhat ! com
[Download RAW message or body]


On 04/29/2016 02:08 PM, Eric Blake wrote:
> Sector-based blk_write() should die; convert the one-off
> variant blk_write_zeroes().
> 
> Signed-off-by: Eric Blake <eblake@redhat.com>
> Acked-by: Denis V. Lunev <den@openvz.org>
> ---

> +++ b/include/sysemu/block-backend.h
> @@ -96,8 +96,8 @@ int blk_pread_unthrottled(BlockBackend *blk, int64_t offset, uint8_t *buf,
>                            int count);
>  int blk_write(BlockBackend *blk, int64_t sector_num, const uint8_t *buf,
>                int nb_sectors);
> -int blk_write_zeroes(BlockBackend *blk, int64_t sector_num,
> -                     int nb_sectors, BdrvRequestFlags flags);
> +int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset,
> +                     int count, BdrvRequestFlags flags);

Maintainer may want to fix indentation if I don't need to respin.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic