Re: [PATCH] qcow2: cleanup created file when qcow2_co_create

2020-10-11 Thread Maxim Levitsky
On Tue, 2020-09-01 at 15:30 +0200, Alberto Garcia wrote: > On Thu 16 Jul 2020 01:33:59 PM CEST, Maxim Levitsky wrote: > > if (ret < 0) { > > + > > +Error *local_delete_err = NULL; > > +int r_del = bdrv_co_delete_file(bs, &local_delete_err); > > +/* > > + * ENOTS

Re: [PATCH] qcow2: cleanup created file when qcow2_co_create

2020-09-01 Thread Alberto Garcia
On Thu 16 Jul 2020 01:33:59 PM CEST, Maxim Levitsky wrote: > if (ret < 0) { > + > +Error *local_delete_err = NULL; > +int r_del = bdrv_co_delete_file(bs, &local_delete_err); > +/* > + * ENOTSUP will happen if the block driver doesn't support > + * the 'b

Re: [PATCH] qcow2: cleanup created file when qcow2_co_create

2020-09-01 Thread Maxim Levitsky
On Thu, 2020-07-16 at 14:33 +0300, Maxim Levitsky wrote: > This is basically the same thing as commit > 'crypto.c: cleanup created file when block_crypto_co_create_opts_luks fails' > does but for qcow2 files to ensure that we don't leave qcow2 files > when creation fails. > > Signed-off-by: Maxim

Re: [PATCH] qcow2: cleanup created file when qcow2_co_create

2020-07-28 Thread Maxim Levitsky
On Thu, 2020-07-16 at 14:33 +0300, Maxim Levitsky wrote: > This is basically the same thing as commit > 'crypto.c: cleanup created file when block_crypto_co_create_opts_luks fails' > does but for qcow2 files to ensure that we don't leave qcow2 files > when creation fails. > > Signed-off-by: Maxim

[PATCH] qcow2: cleanup created file when qcow2_co_create

2020-07-16 Thread Maxim Levitsky
This is basically the same thing as commit 'crypto.c: cleanup created file when block_crypto_co_create_opts_luks fails' does but for qcow2 files to ensure that we don't leave qcow2 files when creation fails. Signed-off-by: Maxim Levitsky --- block/qcow2.c | 11 +++ 1 file changed, 11 ins