Re: [PATCH] multipath-tools: merge nvme in similar blacklist regex

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

 



Applied,
thanks.

On Wed, Nov 16, 2016 at 5:13 PM, Xose Vazquez Perez <xose.vazquez@xxxxxxxxx> wrote:
Similar patterns, /dev/nvme[0-9] .

Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@xxxxxxxxxx>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@xxxxxxxxx>
---
 libmultipath/blacklist.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index f6c4506..9e225cd 100644
--- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c
@@ -172,7 +172,7 @@ setup_default_blist (struct config * conf)
        char * str;
        int i;

-       str = STRDUP("^(ram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk)[0-9]");
+       str = STRDUP("^(ram|raw|loop|fd|md|dm-|sr|scd|st|dcssblk|nvme)[0-9]");
        if (!str)
                return 1;
        if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
@@ -184,12 +184,6 @@ setup_default_blist (struct config * conf)
        if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
                return 1;

-       str = STRDUP("^nvme");
-       if (!str)
-               return 1;
-       if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
-               return 1;
-
        str = STRDUP("(SCSI_IDENT_|ID_WWN)");
        if (!str)
                return 1;
--
2.10.2


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

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

  Powered by Linux