qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/3] block: do not check bdrv_file_open


From: Paolo Bonzini
Subject: Re: [PATCH 2/3] block: do not check bdrv_file_open
Date: Fri, 21 Apr 2023 11:35:54 +0200

On Thu, Jan 19, 2023 at 2:17 PM Kevin Wolf <kwolf@redhat.com> wrote:
> >      assert(!drv->bdrv_needs_filename || bs->filename[0]);
> > -    if (drv->bdrv_file_open) {
> > +    if (drv->bdrv_open) {
> >          ret = drv->bdrv_file_open(bs, options, open_flags, &local_err);
> >      } else if (drv->bdrv_open) {
> >          ret = drv->bdrv_open(bs, options, open_flags, &local_err);
>
> I suppose you mean drv->protocol_name for the first if condition?
>
> The bug will disappear again after patch 3, but this intermediate state
> is very broken.

Yep, I split the patch wrong. Will resend after you merge block-next.

Paolo




reply via email to

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