diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-26 12:20:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-26 12:20:13 +0000 |
commit | 615ee12ec399029b7e8a4272bc38a7ae68e02025 (patch) | |
tree | c353c4e7556897df361db0c811163a70bc3d2e22 /sys/scsi/mpathvar.h | |
parent | 373754713d19cd93ca1ad4d6c900e8e972bf9612 (diff) |
implement handling of group failover.
if a controller sends sense data back, the path driver can tell
mpath that its indicating failover which kicks off an iteration
over all the groups until one says its active. if no groups claim
to be active, a timeout fires the process off again after a second.
you can start controller handover on rdac (well, an md3200i is all
i had to test with, others might need more work) and everything
keeps going. ill try to get to emc and hds working when i can poke
hardware again.
Diffstat (limited to 'sys/scsi/mpathvar.h')
-rw-r--r-- | sys/scsi/mpathvar.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/mpathvar.h b/sys/scsi/mpathvar.h index afb78afc823..224f60e5631 100644 --- a/sys/scsi/mpathvar.h +++ b/sys/scsi/mpathvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpathvar.h,v 1.7 2013/08/26 10:13:17 dlg Exp $ */ +/* $OpenBSD: mpathvar.h,v 1.8 2013/08/26 12:20:12 dlg Exp $ */ /* * Copyright (c) 2010 David Gwynne <dlg@openbsd.org> @@ -19,7 +19,6 @@ #ifndef _SYS_SCSI_MPATH_H_ #define _SYS_SCSI_MPATH_H_ -struct mpath_dev; struct mpath_group; struct mpath_ops { @@ -48,7 +47,7 @@ struct mpath_path { /* the following are private to mpath.c */ TAILQ_ENTRY(mpath_path) p_entry; - struct mpath_dev *p_dev; + struct mpath_group *p_group; int p_state; }; |