Re: [PATCH] libmultipath: Fix MAPINFO_CHECK_UUID with partitions

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

 



On Thu, Nov 21, 2024 at 01:46:17PM -0500, Benjamin Marzinski wrote:
> On Thu, Nov 21, 2024 at 06:05:48PM +0100, Martin Wilck wrote:
> > On Wed, 2024-11-20 at 19:17 -0500, Benjamin Marzinski wrote:
> > > In libmp_mapinfo__(), if is_mpath_part_uuid() succeeded, instead of
> > > ending the 'if' statement, is_mpath_uuid() would be called because of
> > > the OR operator.  This would always fail if is_mpath_part_uuid()
> > > passed.
> > > This meant that libmp_mapinfo__() could never match partitions with
> > > MAPINFO_CHECK_UUID.
> > > 
> > > Fix that by not calling is_mpath_uuid() if MAPINFO_PART_ONLY is set.
> > > 
> > > Fixes: c1aa0285 ("libmultipath: make MAPINFO_CHECK_UUID work with
> > > partitions")
> > > Signed-off-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx>
> > 
> > Ouch. Thanks!!
> > Reviewed-by: Martin Wilck <mwilck@xxxxxxxx>
> 
> So, in theory the next step would be to open a PR for the upstream
> stable branch, if that existed, right?

But I suppose the better actual plan here is just to update the 0.11.0
PR.

> 
> -Ben





[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux