File multipath-tools-dont-set-fc-settings-on-cciss of Package multipath-tools
commit cc8c1de5b823b0839deb02ac1ac3c96dad96b27d
Author: Hannes Reinecke <hare@suse.de>
Date: Wed Mar 18 12:16:36 2009 +0100
Don't try to set FC settings on non-SCSI device
Only SCSI devices can have FC settings. So do not
try to set them on non-SCSI devices.
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index eebfbd5..ac2e9a7 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -219,6 +219,11 @@ sysfs_set_fc_values (struct path *pp, int dev_loss_tmo, int fast_io_fail_tmo)
int rport_channel = -1;
int rport_id = -1;
+ if (pp->bus != SYSFS_BUS_SCSI) {
+ condlog(4, "%s: no FC settings on non-SCSI device", pp->dev);
+ return 0;
+ }
+
if (dev_loss_tmo == 0 || fast_io_fail_tmo == 0) {
condlog(4, "%s: no FC settings", pp->dev);
return 0;