qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv2 20/20] block/raw: copy block limits and alignm


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCHv2 20/20] block/raw: copy block limits and alignment information on raw_open
Date: Wed, 18 Sep 2013 10:48:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

Il 17/09/2013 15:48, Peter Lieven ha scritto:
> Signed-off-by: Peter Lieven <address@hidden>
> ---
>  block/raw_bsd.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/block/raw_bsd.c b/block/raw_bsd.c
> index 0bfa5fc..dfdb375 100644
> --- a/block/raw_bsd.c
> +++ b/block/raw_bsd.c
> @@ -149,6 +149,10 @@ static int raw_create(const char *filename, 
> QEMUOptionParameter *options)
>  static int raw_open(BlockDriverState *bs, QDict *options, int flags)
>  {
>      bs->sg = bs->file->sg;
> +    bs->max_discard = bs->file->max_discard;
> +    bs->discard_alignment = bs->file->discard_alignment;
> +    bs->max_write_zeroes = bs->file->max_write_zeroes;
> +    bs->write_zeroes_alignment = bs->file->write_zeroes_alignment;
>      return 0;

What about introducing a BlockLimits struct?

Paolo

>  }
>  
> 




reply via email to

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