qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH 28/54] block: Allow error return in BlockDevOps.


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH 28/54] block: Allow error return in BlockDevOps.change_media_cb()
Date: Fri, 24 Feb 2017 14:29:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 21.02.2017 15:58, Kevin Wolf wrote:
> Some devices allow a media change between read-only and read-write
> media. They need to adapt the permissions in their .change_media_cb()
> implementation, which can fail. So add an Error parameter to the
> function.
> 
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  block/block-backend.c          | 20 +++++++++++++++-----
>  blockdev.c                     | 19 +++++++++++++++----
>  hw/block/fdc.c                 |  2 +-
>  hw/ide/core.c                  |  2 +-
>  hw/scsi/scsi-disk.c            |  2 +-
>  hw/sd/sd.c                     |  2 +-
>  include/block/block_int.h      |  2 +-
>  include/sysemu/block-backend.h |  2 +-
>  8 files changed, 36 insertions(+), 15 deletions(-)

Reviewed-by: Max Reitz <address@hidden>

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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