[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v2 2/3] block: use defaults of bdrv
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v2 2/3] block: use defaults of bdrv_* callbacks in raw |
Date: |
Mon, 3 Jul 2017 11:05:04 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 06/29/2017 01:43 PM, Manos Pitsidianakis wrote:
> Now that passing the call to bs->file is the default for some bdrv_*
> callbacks, remove the duplicate implementations in block/raw-format.c
>
> Signed-off-by: Manos Pitsidianakis <address@hidden>
> ---
> block/raw-format.c | 32 +-------------------------------
> 1 file changed, 1 insertion(+), 31 deletions(-)
>
> @@ -479,16 +454,11 @@ BlockDriver bdrv_raw = {
> .bdrv_truncate = &raw_truncate,
> .bdrv_getlength = &raw_getlength,
> .has_variable_length = true,
> - .bdrv_get_info = &raw_get_info,
> .bdrv_refresh_limits = &raw_refresh_limits,
> .bdrv_probe_blocksizes = &raw_probe_blocksizes,
> .bdrv_probe_geometry = &raw_probe_geometry,
> - .bdrv_media_changed = &raw_media_changed,
> - .bdrv_eject = &raw_eject,
> - .bdrv_lock_medium = &raw_lock_medium,
> .bdrv_co_ioctl = &raw_co_ioctl,
> - .create_opts = &raw_create_opts,
> - .bdrv_has_zero_init = &raw_has_zero_init
> + .create_opts = &raw_create_opts
Please use a trailing comma here. It causes less churn in future patches
if you don't have to have a -/+ line pair just re-adding the comma.
(Yes, we didn't have a trailing comma, but we should have had one; your
patch is now the chance to make it so).
With that fixed, you can add:
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 2/3] block: use defaults of bdrv_* callbacks in raw,
Eric Blake <=