multipath-tools/path_priority/pp_netapp pp_net ...
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2007-10-09 05:13:45
Modified files:
path_priority/pp_netapp: pp_netapp.c
Log message:
Pulled in the bugfixes from the netapp patch in bz282131.
path_priority/pp_netapp/pp_netapp.c +6 -2
@@ -29,7 +29,7 @@#define INQUIRY_CMDLEN 6#define DEFAULT_PRIO 10#define RESULTS_MAX 256 -#define SG_TIMEOUT 30000 +#define SG_TIMEOUT 60000static void dump_cdb (unsigned char *cdb,int size)
@@ -209,7 +209,7 @@memset (&results,0 ,sizeof (results)); rc =send_gva (dev,0x41 , results, &results_size); -if (rc ==0 ) { +if (rc >=0 ) { tot_len = results[0 ] <<24 | results[1 ] <<16 | results[2 ] <<8 | results[3 ];if (tot_len <=8 ) {
@@ -229,12 +229,16 @@ is_iscsi_hardware =1 ; goto prio_select; } + }else { +return 0 ; } try_fcp_proxy: rc =get_proxy (dev);if (rc >=0 ) { is_proxy = rc; + }else { +return 0 ; } prio_select: