[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 13/14] block: Switch blk_write_zeroes() to by

From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v4 13/14] block: Switch blk_write_zeroes() to byte interface
Date: Fri, 29 Apr 2016 17:21:24 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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 <address@hidden>
> Acked-by: Denis V. Lunev <address@hidden>
> ---

> +++ 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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]