Continue untangling the disklabel. Add sector index reservation fields
[dragonfly/port-amd64.git] / sys / dev / raid / vinum / vinumhdr.h
blob943fa78e953cf28cf370838cea80a6677e43373b
1 /*-
2 * Copyright (c) 1997, 1998
3 * Nan Yang Computer Services Limited. All rights reserved.
5 * This software is distributed under the so-called ``Berkeley
6 * License'':
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Nan Yang Computer
19 * Services Limited.
20 * 4. Neither the name of the Company nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
24 * This software is provided ``as is'', and any express or implied
25 * warranties, including, but not limited to, the implied warranties of
26 * merchantability and fitness for a particular purpose are disclaimed.
27 * In no event shall the company or contributors be liable for any
28 * direct, indirect, incidental, special, exemplary, or consequential
29 * damages (including, but not limited to, procurement of substitute
30 * goods or services; loss of use, data, or profits; or business
31 * interruption) however caused and on any theory of liability, whether
32 * in contract, strict liability, or tort (including negligence or
33 * otherwise) arising in any way out of the use of this software, even if
34 * advised of the possibility of such damage.
37 /* Header files used by all modules */
39 * $Id: vinumhdr.h,v 1.18 2001/01/04 00:14:14 grog Exp grog $
40 * $FreeBSD: src/sys/dev/vinum/vinumhdr.h,v 1.16.2.1 2001/03/13 02:59:43 grog Exp $
41 * $DragonFly: src/sys/dev/raid/vinum/vinumhdr.h,v 1.12 2007/05/16 05:20:21 dillon Exp $
44 #include <sys/param.h>
45 #ifdef _KERNEL
46 #include "opt_vinum.h"
47 #include <sys/systm.h>
48 #include <sys/kernel.h>
49 #include <sys/proc.h>
50 #include <sys/conf.h>
51 #include <sys/mount.h>
52 #include <sys/vnode.h>
53 #include <sys/dkstat.h>
54 #endif
55 #include <sys/errno.h>
56 #if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
57 #include <sys/buf.h>
58 #include <sys/malloc.h>
59 #endif
60 #include <sys/uio.h>
61 #include <sys/namei.h>
62 #include <sys/stat.h>
63 #include <sys/disklabel.h>
64 #include <sys/diskslice.h>
65 #include <sys/syslog.h>
66 #include <sys/fcntl.h>
67 #include <sys/queue.h>
68 #include <sys/device.h>
69 #ifdef _KERNEL
70 #include <machine/setjmp.h>
71 #include <machine/stdarg.h>
72 #include <sys/thread2.h>
73 #include <sys/buf2.h>
74 #else
75 #include <setjmp.h>
76 #include <stdarg.h>
77 #endif
78 #include <vm/vm.h>
80 #include <vfs/ufs/dinode.h> /* XXX used only by fs.h */
81 #include <vfs/ufs/fs.h> /* XXX used only to get SBSIZE and BBSIZE */
83 #include "vinumvar.h"
84 #include "vinumio.h"
85 #include "vinumkw.h"
86 #include "vinumext.h"
87 #include <machine/cpu.h>