[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bd
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate() |
Date: |
Mon, 20 Mar 2017 10:18:28 +0000 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Mon, Mar 13, 2017 at 10:39:46PM +0100, Max Reitz wrote:
> diff --git a/block/iscsi.c b/block/iscsi.c
> index ab559a6f71..5d6265c4a6 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -2060,11 +2060,16 @@ static void iscsi_reopen_commit(BDRVReopenState
> *reopen_state)
> }
> }
>
> -static int iscsi_truncate(BlockDriverState *bs, int64_t offset, Error **errp)
> +static int iscsi_truncate(BlockDriverState *bs, int64_t offset,
> + PreallocMode prealloc, Error **errp)
> {
> IscsiLun *iscsilun = bs->opaque;
> Error *local_err = NULL;
>
> + if (prealloc != PREALLOC_MODE_OFF) {
> + return -ENOTSUP;
> + }
> +
> if (iscsilun->type != TYPE_DISK) {
> return -ENOTSUP;
> }
Nevermind what I said about adding a BiteSizedTasks entry:
The missing errp usage is not in qemu.git/master yet. Please fix up
your bdrv_truncate() errp patch to use errp in all cases, e.g.
error_setg("Unable to truncate non-disk LUN").
stefan
signature.asc
Description: PGP signature
- [Qemu-block] [PATCH for-2.10 00/16] block: Preallocated truncate, Max Reitz, 2017/03/13
- [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Max Reitz, 2017/03/13
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Stefan Hajnoczi, 2017/03/20
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(),
Stefan Hajnoczi <=
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Max Reitz, 2017/03/20
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Stefan Hajnoczi, 2017/03/22
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Max Reitz, 2017/03/22
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Stefan Hajnoczi, 2017/03/23
- Re: [Qemu-block] [PATCH for-2.10 01/16] block: Add PreallocMode to BD.bdrv_truncate(), Max Reitz, 2017/03/27
[Qemu-block] [PATCH for-2.10 02/16] block: Add PreallocMode to bdrv_truncate(), Max Reitz, 2017/03/13
[Qemu-block] [PATCH for-2.10 03/16] block: Add PreallocMode to blk_truncate(), Max Reitz, 2017/03/13
[Qemu-block] [PATCH for-2.10 04/16] qemu-img: Expose PreallocMode for resizing, Max Reitz, 2017/03/13