[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] block/block-backend.c: add blk_check_byte_r
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] block/block-backend.c: add blk_check_byte_request call to blk_pread/blk_pwrite |
Date: |
Wed, 20 Sep 2017 14:24:21 +0200 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
Am 20.09.2017 um 13:43 hat Manos Pitsidianakis geschrieben:
> blk_check_byte_request() is called from the blk_co_pwritev/blk_co_preadv to
> check if the request offset and request bytes parameters are valid for the
> given Blockbackend. Let's do that in blk_pread/blk_pwrite too.
>
> Signed-off-by: Manos Pitsidianakis <address@hidden>
I don't think this is necessary, blk_pread/pwrite() are only wrappers
around blk_co_preadv/pwritev(), so we're already checking the
parameters.
Kevin