Re: [PATCH 7/7] multipathd: make cli_add_map() handle adding maps by WWID correctly

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

 



On Wed, 2024-06-05 at 19:22 -0400, Benjamin Marzinski wrote:
> 
> cli_add_map() runs filter_wwid() on the input param as if it were a
> WWID, but dm_get_major_minor() will never find the multipath device
> if
> the user actually passes in a WWID. To handle this case, call
> get_refwwid() early in the function, and use dm_map_present_by_uuid()
> to
> check if the map exists, and find its alias and minor number.
> 
> Also, the do/while loop is unnecessarily confusing and only avoids
> one
> repeated function call. Remove it to simplify the cli_add_map().
> 
> Signed-off-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx>

Looks good, but it depends on 4/7, which needs some work.

Martin







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

  Powered by Linux