diff options
-rw-r--r-- | sys/scsi/mpath_emc.c | 4 | ||||
-rw-r--r-- | sys/scsi/mpath_hds.c | 4 | ||||
-rw-r--r-- | sys/scsi/mpath_rdac.c | 4 | ||||
-rw-r--r-- | sys/scsi/mpath_sym.c | 4 | ||||
-rw-r--r-- | sys/scsi/mpathvar.h | 5 |
5 files changed, 12 insertions, 9 deletions
diff --git a/sys/scsi/mpath_emc.c b/sys/scsi/mpath_emc.c index 1d61690f29f..626006ac240 100644 --- a/sys/scsi/mpath_emc.c +++ b/sys/scsi/mpath_emc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_emc.c,v 1.9 2013/08/26 07:29:45 dlg Exp $ */ +/* $OpenBSD: mpath_emc.c,v 1.10 2013/08/26 07:38:56 dlg Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -215,7 +215,7 @@ emc_mpath_start(struct scsi_xfer *xs) int emc_mpath_checksense(struct scsi_xfer *xs) { - return (0); + return (MPATH_SENSE_DECLINED); } int diff --git a/sys/scsi/mpath_hds.c b/sys/scsi/mpath_hds.c index 59628f28bed..79181a1360e 100644 --- a/sys/scsi/mpath_hds.c +++ b/sys/scsi/mpath_hds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_hds.c,v 1.7 2013/08/26 07:29:45 dlg Exp $ */ +/* $OpenBSD: mpath_hds.c,v 1.8 2013/08/26 07:38:56 dlg Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -212,7 +212,7 @@ hds_mpath_start(struct scsi_xfer *xs) int hds_mpath_checksense(struct scsi_xfer *xs) { - return (0); + return (MPATH_SENSE_DECLINED); } int diff --git a/sys/scsi/mpath_rdac.c b/sys/scsi/mpath_rdac.c index 6e9f2835f4a..bbfc6b172e5 100644 --- a/sys/scsi/mpath_rdac.c +++ b/sys/scsi/mpath_rdac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_rdac.c,v 1.9 2013/08/26 07:29:45 dlg Exp $ */ +/* $OpenBSD: mpath_rdac.c,v 1.10 2013/08/26 07:38:56 dlg Exp $ */ /* * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -263,7 +263,7 @@ rdac_mpath_start(struct scsi_xfer *xs) int rdac_mpath_checksense(struct scsi_xfer *xs) { - return (0); + return (MPATH_SENSE_DECLINED); } int diff --git a/sys/scsi/mpath_sym.c b/sys/scsi/mpath_sym.c index 778423eb6f4..31602d7da34 100644 --- a/sys/scsi/mpath_sym.c +++ b/sys/scsi/mpath_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_sym.c,v 1.10 2013/08/26 07:29:45 dlg Exp $ */ +/* $OpenBSD: mpath_sym.c,v 1.11 2013/08/26 07:38:56 dlg Exp $ */ /* * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -205,7 +205,7 @@ sym_mpath_start(struct scsi_xfer *xs) int sym_mpath_checksense(struct scsi_xfer *xs) { - return (0); + return (MPATH_SENSE_DECLINED); } int diff --git a/sys/scsi/mpathvar.h b/sys/scsi/mpathvar.h index 45a858dacc0..3367b0abaa2 100644 --- a/sys/scsi/mpathvar.h +++ b/sys/scsi/mpathvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpathvar.h,v 1.5 2013/08/26 07:29:45 dlg Exp $ */ +/* $OpenBSD: mpathvar.h,v 1.6 2013/08/26 07:38:56 dlg Exp $ */ /* * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -30,6 +30,9 @@ struct mpath_ops { int op_schedule; }; +#define MPATH_SENSE_DECLINED 0 /* path driver declined to interpret sense */ +#define MPATH_SENSE_FAILOVER 1 /* sense says controllers have failed over */ + #define MPATH_ROUNDROBIN 0 /* use all active paths */ #define MPATH_NEXT MPATH_ROUNDROBIN #define MPATH_MRU 1 /* use most recently used path */ |