On Wed, Aug 12, 2020 at 01:35:06PM +0200, mwi...@suse.com wrote:
> From: Martin Wilck <mwi...@suse.com>
> 
> If we don't do this, pathinfo() will fail on these paths, causing
> adopt_paths() to fail.
> 
Reviewed-by: Benjamin Marzinski <bmarz...@redhat.com>
> Signed-off-by: Martin Wilck <mwi...@suse.com>
> ---
>  libmultipath/structs_vec.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
> index f139fc0..ba3165a 100644
> --- a/libmultipath/structs_vec.c
> +++ b/libmultipath/structs_vec.c
> @@ -79,9 +79,11 @@ int adopt_paths(vector pathvec, struct multipath *mpp)
>                                       pp->dev, mpp->alias);
>                               continue;
>                       }
> +                     pp->mpp = mpp;
> +                     if (pp->initialized == INIT_REMOVED)
> +                             continue;
>                       condlog(3, "%s: ownership set to %s",
>                               pp->dev, mpp->alias);
> -                     pp->mpp = mpp;
>  
>                       if (!mpp->paths && !(mpp->paths = vector_alloc()))
>                               return 1;
> -- 
> 2.28.0

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to