g_mirror.h (256281) | g_mirror.h (260385) |
---|---|
1/*- 2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/sys/geom/mirror/g_mirror.h 237930 2012-07-01 15:43:52Z glebius $ | 26 * $FreeBSD: stable/10/sys/geom/mirror/g_mirror.h 260385 2014-01-07 01:32:23Z scottl $ |
27 */ 28 29#ifndef _G_MIRROR_H_ 30#define _G_MIRROR_H_ 31 32#include <sys/endian.h> 33#include <sys/md5.h> 34 --- 172 unchanged lines hidden (view full) --- 207 u_int sc_writes; 208 209 TAILQ_HEAD(, g_mirror_event) sc_events; 210 struct mtx sc_events_mtx; 211 212 struct callout sc_callout; 213 214 struct root_hold_token *sc_rootmount; | 27 */ 28 29#ifndef _G_MIRROR_H_ 30#define _G_MIRROR_H_ 31 32#include <sys/endian.h> 33#include <sys/md5.h> 34 --- 172 unchanged lines hidden (view full) --- 207 u_int sc_writes; 208 209 TAILQ_HEAD(, g_mirror_event) sc_events; 210 struct mtx sc_events_mtx; 211 212 struct callout sc_callout; 213 214 struct root_hold_token *sc_rootmount; |
215 216 struct mtx sc_done_mtx; |
|
215}; 216#define sc_name sc_geom->name 217 218u_int g_mirror_ndisks(struct g_mirror_softc *sc, int state); 219#define G_MIRROR_DESTROY_SOFT 0 220#define G_MIRROR_DESTROY_DELAYED 1 221#define G_MIRROR_DESTROY_HARD 2 222int g_mirror_destroy(struct g_mirror_softc *sc, int how); --- 273 unchanged lines hidden --- | 217}; 218#define sc_name sc_geom->name 219 220u_int g_mirror_ndisks(struct g_mirror_softc *sc, int state); 221#define G_MIRROR_DESTROY_SOFT 0 222#define G_MIRROR_DESTROY_DELAYED 1 223#define G_MIRROR_DESTROY_HARD 2 224int g_mirror_destroy(struct g_mirror_softc *sc, int how); --- 273 unchanged lines hidden --- |