Deleted Added
full compact
ctl_ha.h (256281) ctl_ha.h (275493)
1/*-
2 * Copyright (c) 2003-2009 Silicon Graphics International Corp.
3 * Copyright (c) 2011 Spectra Logic Corporation
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGES.
30 *
31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_ha.h#1 $
1/*-
2 * Copyright (c) 2003-2009 Silicon Graphics International Corp.
3 * Copyright (c) 2011 Spectra Logic Corporation
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGES.
30 *
31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_ha.h#1 $
32 * $FreeBSD: stable/10/sys/cam/ctl/ctl_ha.h 229997 2012-01-12 00:34:33Z ken $
32 * $FreeBSD: stable/10/sys/cam/ctl/ctl_ha.h 275493 2014-12-05 07:23:25Z mav $
33 */
34
35#ifndef _CTL_HA_H_
36#define _CTL_HA_H_
37
38/*
39 * CTL High Availability Modes:
40 *
33 */
34
35#ifndef _CTL_HA_H_
36#define _CTL_HA_H_
37
38/*
39 * CTL High Availability Modes:
40 *
41 * CTL_HA_MODE_ACT_STBY: One side is in Active state and processing commands,
42 * the other side is in Standby state, returning errors.
41 * CTL_HA_MODE_SER_ONLY: Commands are serialized to the other side. Write
42 * mirroring and read re-direction are assumed to
43 * happen in the back end.
44 * CTL_HA_MODE_XFER: Commands are serialized and data is transferred
45 * for write mirroring and read re-direction.
46 */
47
48typedef enum {
43 * CTL_HA_MODE_SER_ONLY: Commands are serialized to the other side. Write
44 * mirroring and read re-direction are assumed to
45 * happen in the back end.
46 * CTL_HA_MODE_XFER: Commands are serialized and data is transferred
47 * for write mirroring and read re-direction.
48 */
49
50typedef enum {
51 CTL_HA_MODE_ACT_STBY,
49 CTL_HA_MODE_SER_ONLY,
50 CTL_HA_MODE_XFER
51} ctl_ha_mode;
52
53
54/*
55 * This is a stubbed out High Availability interface. It assumes two nodes
56 * staying in sync.

--- 214 unchanged lines hidden ---
52 CTL_HA_MODE_SER_ONLY,
53 CTL_HA_MODE_XFER
54} ctl_ha_mode;
55
56
57/*
58 * This is a stubbed out High Availability interface. It assumes two nodes
59 * staying in sync.

--- 214 unchanged lines hidden ---