All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][multipath-tools] discovery.c set hwe pointer for bus type ccw
@ 2006-02-02 14:59 Stefan Weinhuber
  2006-02-02 16:19 ` Christophe Varoqui
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Weinhuber @ 2006-02-02 14:59 UTC (permalink / raw)
  To: christophe.varoqui, dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 658 bytes --]

Hi Christophe,

I tried to use the current git tree version of the multipath-tools in a 
Linux on zSeries environment with DASD devices. The tool multipath seemed 
to
recognize the disks correctly, but ignored the device specific 
configuration
in my multipath.conf.

Stefan Bader found the problem in libmultipath/discovery.c in the function 

ccw_sysfs_pathinfo. In that function the hwe configlet pointer should be 
set.
Please see attached patch:


Best Regards /  Mit freundlichen Grüßen

Stefan Weinhuber

-------------------------------------------------------------------
IBM Deutschland Entwicklung GmbH
e-mail: wein@de.ibm.com

[-- Attachment #1.2: Type: text/html, Size: 1080 bytes --]

[-- Attachment #2: ccw_sysfs_pathinfo-hwe-fix.patch --]
[-- Type: application/octet-stream, Size: 595 bytes --]

diff -rup multipath-tools/libmultipath/discovery.c multipath-tools-fixed/libmultipath/discovery.c
--- multipath-tools/libmultipath/discovery.c	2006-02-01 11:30:09.000000000 +0100
+++ multipath-tools-fixed/libmultipath/discovery.c	2006-02-02 14:27:58.000000000 +0100
@@ -523,6 +523,11 @@ ccw_sysfs_pathinfo (struct path * pp)
 	condlog(3, "%s: product = %s", pp->dev, pp->product_id);
 
 	/*
+	 * set the hwe configlet pointer
+	 */
+	pp->hwe = find_hwe(conf->hwtable, pp->vendor_id, pp->product_id);
+
+	/*
 	 * host / bus / target / lun
 	 */
 	if(safe_sprintf(attr_path, "%s/block/%s/device",

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-03  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-02 14:59 [PATCH][multipath-tools] discovery.c set hwe pointer for bus type ccw Stefan Weinhuber
2006-02-02 16:19 ` Christophe Varoqui
2006-02-03  7:15   ` Hannes Reinecke
2006-02-03  8:45     ` Christophe Varoqui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.