geom_slice.h (107522) | geom_slice.h (107953) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/geom/geom_slice.h 107522 2002-12-02 19:59:25Z phk $ | 35 * $FreeBSD: head/sys/geom/geom_slice.h 107953 2002-12-16 22:33:27Z phk $ |
36 */ 37 38#ifndef _GEOM_GEOM_SLICE_H_ 39#define _GEOM_GEOM_SLICE_H_ 40 41struct g_slice { 42 off_t offset; 43 off_t length; --- 11 unchanged lines hidden (view full) --- 55 off_t frontstuff; 56 struct g_slice *slices; 57 struct g_slice *hot; 58 void *softc; 59 g_slice_start_t *start; 60}; 61 62g_dumpconf_t g_slice_dumpconf; | 36 */ 37 38#ifndef _GEOM_GEOM_SLICE_H_ 39#define _GEOM_GEOM_SLICE_H_ 40 41struct g_slice { 42 off_t offset; 43 off_t length; --- 11 unchanged lines hidden (view full) --- 55 off_t frontstuff; 56 struct g_slice *slices; 57 struct g_slice *hot; 58 void *softc; 59 g_slice_start_t *start; 60}; 61 62g_dumpconf_t g_slice_dumpconf; |
63struct g_provider * g_slice_addslice(struct g_geom *gp, int index, off_t offset, off_t length, u_int sectorsize, char *fmt, ...); 64int g_slice_config(struct g_geom *gp, u_int index, int how, off_t offset, off_t length, u_int sectorsize, char *fmt, ...); | 63struct g_provider * g_slice_addslice(struct g_geom *gp, int idx, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...); 64int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...); |
65#define G_SLICE_CONFIG_CHECK 0 66#define G_SLICE_CONFIG_SET 1 67#define G_SLICE_CONFIG_FORCE 2 68struct g_geom * g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start); 69 | 65#define G_SLICE_CONFIG_CHECK 0 66#define G_SLICE_CONFIG_SET 1 67#define G_SLICE_CONFIG_FORCE 2 68struct g_geom * g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start); 69 |
70int g_slice_conf_hot(struct g_geom *gp, u_int index, off_t offset, off_t length); | 70int g_slice_conf_hot(struct g_geom *gp, u_int idx, off_t offset, off_t length); |
71void g_slice_finish_hot(struct bio *bp); 72 73#endif /* _GEOM_GEOM_SLICE_H_ */ | 71void g_slice_finish_hot(struct bio *bp); 72 73#endif /* _GEOM_GEOM_SLICE_H_ */ |