[dm-devel] [PATCH v2 1/2] kpartx.rules: honor DM_UDEV_DISABLE_OTHER_RULES_FLAG

Benjamin Marzinski bmarzins at redhat.com
Fri Apr 3 16:48:12 UTC 2020


On Fri, Apr 03, 2020 at 01:19:13PM +0200, mwilck at suse.com wrote:
> From: Martin Wilck <mwilck at suse.com>
> 
> 10-dm.rules sets DM_UDEV_DISABLE_OTHER_RULES_FLAG for spurious
> events that should be ignored by other layers. This means devices
> with DISK_RO set, and devices that have never been set up properly
> by device-mapper before. This flag should be respected by kpartx.
> 

Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>

> Signed-off-by: Martin Wilck <mwilck at suse.com>
> ---
>  kpartx/kpartx.rules | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
> index 8f990494..f1bf31ca 100644
> --- a/kpartx/kpartx.rules
> +++ b/kpartx/kpartx.rules
> @@ -7,6 +7,7 @@
>  KERNEL!="dm-*", GOTO="kpartx_end"
>  ACTION!="add|change", GOTO="kpartx_end"
>  ENV{DM_UUID}!="?*", GOTO="kpartx_end"
> +ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="kpartx_end"
>  
>  # Create dm tables for partitions on multipath devices.
>  ENV{DM_UUID}!="mpath-?*", GOTO="mpath_kpartx_end"
> -- 
> 2.25.1




More information about the dm-devel mailing list