Deleted Added
full compact
libgeom.h (182843) libgeom.h (202454)
1/*-
2 * Copyright (c) 2003 Poul-Henning Kamp
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2003 Poul-Henning Kamp
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/lib/libgeom/libgeom.h 182843 2008-09-07 13:54:57Z lulf $
29 * $FreeBSD: head/lib/libgeom/libgeom.h 202454 2010-01-17 06:20:30Z delphij $
30 */
31#ifndef _LIBGEOM_H_
32#define _LIBGEOM_H_
33
34#include <sys/cdefs.h>
35
36#include <sys/queue.h>
37#include <sys/time.h>

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

118 void *lg_id;
119 char *lg_name;
120 struct ggeom *lg_geom;
121 LIST_ENTRY(gprovider) lg_provider;
122 LIST_HEAD(, gconsumer) lg_consumers;
123 char *lg_mode;
124 off_t lg_mediasize;
125 u_int lg_sectorsize;
30 */
31#ifndef _LIBGEOM_H_
32#define _LIBGEOM_H_
33
34#include <sys/cdefs.h>
35
36#include <sys/queue.h>
37#include <sys/time.h>

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

118 void *lg_id;
119 char *lg_name;
120 struct ggeom *lg_geom;
121 LIST_ENTRY(gprovider) lg_provider;
122 LIST_HEAD(, gconsumer) lg_consumers;
123 char *lg_mode;
124 off_t lg_mediasize;
125 u_int lg_sectorsize;
126 off_t lg_stripeoffset;
127 off_t lg_stripesize;
126 struct gconf lg_config;
127};
128
129struct gident * geom_lookupid(struct gmesh *, const void *);
130int geom_xml2tree(struct gmesh *, char *);
131int geom_gettree(struct gmesh *);
132void geom_deletetree(struct gmesh *);
133

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

144void gctl_ro_param(struct gctl_req *, const char *, int, const void *);
145void gctl_rw_param(struct gctl_req *, const char *, int, void *);
146
147/* geom_util.c */
148int g_open(const char *, int);
149int g_close(int);
150off_t g_mediasize(int);
151ssize_t g_sectorsize(int);
128 struct gconf lg_config;
129};
130
131struct gident * geom_lookupid(struct gmesh *, const void *);
132int geom_xml2tree(struct gmesh *, char *);
133int geom_gettree(struct gmesh *);
134void geom_deletetree(struct gmesh *);
135

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

146void gctl_ro_param(struct gctl_req *, const char *, int, const void *);
147void gctl_rw_param(struct gctl_req *, const char *, int, void *);
148
149/* geom_util.c */
150int g_open(const char *, int);
151int g_close(int);
152off_t g_mediasize(int);
153ssize_t g_sectorsize(int);
154off_t g_stripeoffset(int);
155off_t g_stripesize(int);
152int g_flush(int);
153int g_delete(int, off_t, off_t);
154int g_get_ident(int, char *, size_t);
155int g_get_name(const char *, char *, size_t);
156int g_open_by_ident(const char *, int, char *, size_t);
157char *g_device_path(const char *);
158char *g_providername(int);
159
160__END_DECLS
161
162#endif /* _LIBGEOM_H_ */
156int g_flush(int);
157int g_delete(int, off_t, off_t);
158int g_get_ident(int, char *, size_t);
159int g_get_name(const char *, char *, size_t);
160int g_open_by_ident(const char *, int, char *, size_t);
161char *g_device_path(const char *);
162char *g_providername(int);
163
164__END_DECLS
165
166#endif /* _LIBGEOM_H_ */