Deleted Added
full compact
g_mirror.h (155539) g_mirror.h (155545)
1/*-
2 * Copyright (c) 2004-2005 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-2005 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: head/sys/geom/mirror/g_mirror.h 155539 2006-02-11 14:42:23Z pjd $
26 * $FreeBSD: head/sys/geom/mirror/g_mirror.h 155545 2006-02-11 17:39:29Z pjd $
27 */
28
29#ifndef _G_MIRROR_H_
30#define _G_MIRROR_H_
31
32#include <sys/endian.h>
33#include <sys/md5.h>
34

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

52#define G_MIRROR_BALANCE_MIN G_MIRROR_BALANCE_NONE
53#define G_MIRROR_BALANCE_MAX G_MIRROR_BALANCE_PREFER
54
55#define G_MIRROR_DISK_FLAG_DIRTY 0x0000000000000001ULL
56#define G_MIRROR_DISK_FLAG_SYNCHRONIZING 0x0000000000000002ULL
57#define G_MIRROR_DISK_FLAG_FORCE_SYNC 0x0000000000000004ULL
58#define G_MIRROR_DISK_FLAG_INACTIVE 0x0000000000000008ULL
59#define G_MIRROR_DISK_FLAG_HARDCODED 0x0000000000000010ULL
27 */
28
29#ifndef _G_MIRROR_H_
30#define _G_MIRROR_H_
31
32#include <sys/endian.h>
33#include <sys/md5.h>
34

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

52#define G_MIRROR_BALANCE_MIN G_MIRROR_BALANCE_NONE
53#define G_MIRROR_BALANCE_MAX G_MIRROR_BALANCE_PREFER
54
55#define G_MIRROR_DISK_FLAG_DIRTY 0x0000000000000001ULL
56#define G_MIRROR_DISK_FLAG_SYNCHRONIZING 0x0000000000000002ULL
57#define G_MIRROR_DISK_FLAG_FORCE_SYNC 0x0000000000000004ULL
58#define G_MIRROR_DISK_FLAG_INACTIVE 0x0000000000000008ULL
59#define G_MIRROR_DISK_FLAG_HARDCODED 0x0000000000000010ULL
60#define G_MIRROR_DISK_FLAG_BROKEN 0x0000000000000020ULL
60#define G_MIRROR_DISK_FLAG_MASK (G_MIRROR_DISK_FLAG_DIRTY | \
61 G_MIRROR_DISK_FLAG_SYNCHRONIZING | \
62 G_MIRROR_DISK_FLAG_FORCE_SYNC | \
63 G_MIRROR_DISK_FLAG_INACTIVE)
64
65#define G_MIRROR_DEVICE_FLAG_NOAUTOSYNC 0x0000000000000001ULL
66#define G_MIRROR_DEVICE_FLAG_MASK (G_MIRROR_DEVICE_FLAG_NOAUTOSYNC)
67

--- 405 unchanged lines hidden ---
61#define G_MIRROR_DISK_FLAG_MASK (G_MIRROR_DISK_FLAG_DIRTY | \
62 G_MIRROR_DISK_FLAG_SYNCHRONIZING | \
63 G_MIRROR_DISK_FLAG_FORCE_SYNC | \
64 G_MIRROR_DISK_FLAG_INACTIVE)
65
66#define G_MIRROR_DEVICE_FLAG_NOAUTOSYNC 0x0000000000000001ULL
67#define G_MIRROR_DEVICE_FLAG_MASK (G_MIRROR_DEVICE_FLAG_NOAUTOSYNC)
68

--- 405 unchanged lines hidden ---