@@ -197,7 +197,7 @@
# product "LUN"
# path_grouping_policy group_by_prio
# getuid_callout "/sbin/scsi_id -g -u -s"
-# prio_callout "/sbin/mpath_prio_netapp /dev/%n"
+# prio_callout "/sbin/mpath_prio_ontap /dev/%n"
# features "1 queue_if_no_path"
# path_checker readsector0
# }
@@ -206,7 +206,7 @@
# product "Nseries"
# path_grouping_policy group_by_prio
# getuid_callout "/sbin/scsi_id -g -u -s"
-# prio_callout "/sbin/mpath_prio_netapp /dev/%n"
+# prio_callout "/sbin/mpath_prio_ontap /dev/%n"
# features "1 queue_if_no_path"
# path_checker readsector0
# failback immediate
@@ -70,10 +70,10 @@
"/sbin/dasdview -j -f /dev/%n", NULL, "0", "0",
"directio", FAILBACK_UNDEF, "S/390", 0, 0, 0);
r += store_hwe_ext(hw, "NETAPP", "LUN", GROUP_BY_PRIO, DEFAULT_GETUID,
- "/sbin/mpath_prio_netapp /dev/%n", NULL,
+ "/sbin/mpath_prio_ontap /dev/%n", NULL,
"1 queue_if_no_path", "readsector0", FAILBACK_UNDEF, NULL, 0, 0, 0);
r += store_hwe_ext(hw, "IBM", "Nseries", GROUP_BY_PRIO, DEFAULT_GETUID,
- "/sbin/mpath_prio_netapp /dev/%n", NULL,
+ "/sbin/mpath_prio_ontap /dev/%n", NULL,
"1 queue_if_no_path", "readsector0", -FAILBACK_IMMEDIATE,
NULL, 0, 0, 128);
r += store_hwe_ext(hw, "Pillar", "Axiom 500", GROUP_BY_PRIO,
@@ -1,4 +1,5 @@
-EXEC = mpath_prio_netapp
+EXEC = mpath_prio_ontap
+LINK = mpath_prio_netapp
BUILD = glibc
OBJS = pp_netapp.o
@@ -17,9 +18,11 @@
install: $(EXEC)
install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
+ ln -sf $(DESTDIR)$(bindir)/$(EXEC) $(DESTDIR)$(bindir)/$(LINK)
uninstall:
rm $(DESTDIR)$(bindir)/$(EXEC)
+ rm $(DESTDIR)$(bindir)/$(LINK)
clean:
rm -f *.o $(EXEC)
@@ -29,7 +29,7 @@
#define INQUIRY_CMDLEN 6
#define DEFAULT_PRIO 10
#define RESULTS_MAX 256
-#define SG_TIMEOUT 30000
+#define SG_TIMEOUT 60000
static 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: