Re: [PATCH v4 5/9] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-20 Thread Eric Blake
On 4/20/20 10:32 AM, Kevin Wolf wrote: @@ -445,6 +445,7 @@ static int raw_open(BlockDriverState *bs, QDict *options, int flags, bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED | ((BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP | BDRV_REQ_NO_FALLBACK) & bs->file->bs->supp

Re: [PATCH v4 5/9] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-20 Thread Kevin Wolf
Am 20.04.2020 um 17:14 hat Eric Blake geschrieben: > On 4/20/20 8:32 AM, Kevin Wolf wrote: > > The raw format driver can simply forward the flag and let its bs->file > > child take care of actually providing the zeros. > > > > Signed-off-by: Kevin Wolf > > --- > > block/raw-format.c | 3 ++- > >

Re: [PATCH v4 5/9] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-20 Thread Eric Blake
On 4/20/20 8:32 AM, Kevin Wolf wrote: The raw format driver can simply forward the flag and let its bs->file child take care of actually providing the zeros. Signed-off-by: Kevin Wolf --- block/raw-format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/raw-forma

Re: [PATCH v4 5/9] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-20 Thread Alberto Garcia
On Mon 20 Apr 2020 03:32:10 PM CEST, Kevin Wolf wrote: > The raw format driver can simply forward the flag and let its bs->file > child take care of actually providing the zeros. > > Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Berto

[PATCH v4 5/9] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate

2020-04-20 Thread Kevin Wolf
The raw format driver can simply forward the flag and let its bs->file child take care of actually providing the zeros. Signed-off-by: Kevin Wolf --- block/raw-format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/raw-format.c b/block/raw-format.c index 3465c9a865.