[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
> }
>
>
- Re: [Qemu-devel] [PATCHv2 12/20] iscsi: add bdrv_co_write_zeroes, (continued)
- [Qemu-devel] [PATCHv2 07/20] block: honour alignment and limit in bdrv_co_do_write_zeroes, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 14/20] block/get_block_status: set *pnum = 0 on error, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 13/20] block: introduce bdrv_zeroize, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 15/20] block/get_block_status: avoid segfault if there is no backing_hd, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 20/20] block/raw: copy block limits and alignment information on raw_open, Peter Lieven, 2013/09/17
- Re: [Qemu-devel] [PATCHv2 20/20] block/raw: copy block limits and alignment information on raw_open,
Paolo Bonzini <=
- [Qemu-devel] [PATCHv2 17/20] block/get_block_status: fix BDRV_BLOCK_ZERO for unallocated blocks, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 19/20] qemu-img: conditionally zero out target on convert, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 16/20] block/get_block_status: avoid redundant callouts on raw devices, Peter Lieven, 2013/09/17
- [Qemu-devel] [PATCHv2 18/20] qemu-img: add support for fully allocated images, Peter Lieven, 2013/09/17