g_raid.h (234603) | g_raid.h (234940) |
---|---|
1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@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) 2010 Alexander Motin <mav@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/raid/g_raid.h 234603 2012-04-23 13:04:02Z mav $ | 26 * $FreeBSD: head/sys/geom/raid/g_raid.h 234940 2012-05-03 05:32:56Z mav $ |
27 */ 28 29#ifndef _G_RAID_H_ 30#define _G_RAID_H_ 31 32#include <sys/param.h> 33#include <sys/kobj.h> 34#include <sys/bio.h> --- 342 unchanged lines hidden (view full) --- 377const char * g_raid_volume_level2str(int level, int qual); 378int g_raid_volume_str2level(const char *str, int *level, int *qual); 379const char * g_raid_volume_state2str(int state); 380const char * g_raid_subdisk_state2str(int state); 381const char * g_raid_disk_state2str(int state); 382 383struct g_raid_softc * g_raid_create_node(struct g_class *mp, 384 const char *name, struct g_raid_md_object *md); | 27 */ 28 29#ifndef _G_RAID_H_ 30#define _G_RAID_H_ 31 32#include <sys/param.h> 33#include <sys/kobj.h> 34#include <sys/bio.h> --- 342 unchanged lines hidden (view full) --- 377const char * g_raid_volume_level2str(int level, int qual); 378int g_raid_volume_str2level(const char *str, int *level, int *qual); 379const char * g_raid_volume_state2str(int state); 380const char * g_raid_subdisk_state2str(int state); 381const char * g_raid_disk_state2str(int state); 382 383struct g_raid_softc * g_raid_create_node(struct g_class *mp, 384 const char *name, struct g_raid_md_object *md); |
385int g_raid_create_node_format(const char *format, struct g_geom **gp); | 385int g_raid_create_node_format(const char *format, struct gctl_req *req, 386 struct g_geom **gp); |
386struct g_raid_volume * g_raid_create_volume(struct g_raid_softc *sc, 387 const char *name, int id); 388struct g_raid_disk * g_raid_create_disk(struct g_raid_softc *sc); 389const char * g_raid_get_diskname(struct g_raid_disk *disk); 390 391int g_raid_start_volume(struct g_raid_volume *vol); 392 393int g_raid_destroy_node(struct g_raid_softc *sc, int worker); --- 44 unchanged lines hidden --- | 387struct g_raid_volume * g_raid_create_volume(struct g_raid_softc *sc, 388 const char *name, int id); 389struct g_raid_disk * g_raid_create_disk(struct g_raid_softc *sc); 390const char * g_raid_get_diskname(struct g_raid_disk *disk); 391 392int g_raid_start_volume(struct g_raid_volume *vol); 393 394int g_raid_destroy_node(struct g_raid_softc *sc, int worker); --- 44 unchanged lines hidden --- |