summaryrefslogtreecommitdiff
path: root/pcr/multipath-tools/blacklist-cciss-devices.patch
blob: 30a4400a7649c46364ccbe7b1330956423db9e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 3 Oct 2008 12:39:48 +0200
Subject: [PATCH] blacklist cciss devices

cciss support isn't complete in 0.4.8 and the half functioning causes
problems in d-i among other things.
Closes: #500991
---
 libmultipath/blacklist.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index 79ddcde..6d0a0ad 100644
--- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c
@@ -182,6 +182,13 @@ setup_default_blist (struct config * conf)
 	if (store_ble(conf->elist_property, str, ORIGIN_DEFAULT))
 		return 1;
 
+	str = STRDUP("^cciss!c[0-9]d[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 (_blacklist_device(conf->blist_device, hwe->vendor,