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

[dm-devel] [PATCH] multipath-tools: add dcssblk to default blacklist



[libmultipath] Add "^dcssblk[0-9]*" to default blacklist.

Added some System z specific device nodes, which would otherwise cause
problems, to default blacklist.

Signed-off-by: Stefan Bader <shbader de ibm com>

---
 libmultipath/blacklist.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: multipath-tools-0.4.7.latest-20070723/libmultipath/blacklist.c
===================================================================
--- multipath-tools-0.4.7.latest-20070723.orig/libmultipath/blacklist.c
+++ multipath-tools-0.4.7.latest-20070723/libmultipath/blacklist.c
@@ -121,6 +121,12 @@ setup_default_blist (struct config * con
        if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
                return 1;
 
+       str = STRDUP("^dcssblk[0-9]*");
+       if (!str)
+               return 1;
+       if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
+               return 1;
+
        vector_foreach_slot (conf->hwtable, hwe, i) {
                if (hwe->bl_product) {
                        if (alloc_ble_device(conf->blist_device))



Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
Stefan Bader de ibm com

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
  When all other means of communication fail, try words.

Attachment: mp-tools-blacklist-dcssblk.patch
Description: Binary data


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