Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/vinum/geom_vinum.h
Show All 25 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _GEOM_VINUM_H_ | #ifndef _GEOM_VINUM_H_ | ||||
#define _GEOM_VINUM_H_ | #define _GEOM_VINUM_H_ | ||||
#ifdef _KERNEL | |||||
#include <geom/geom_int.h> | |||||
#endif | |||||
/* geom_vinum_create.c */ | /* geom_vinum_create.c */ | ||||
void gv_concat(struct g_geom *gp, struct gctl_req *); | void gv_concat(struct g_geom *gp, struct gctl_req *); | ||||
void gv_mirror(struct g_geom *gp, struct gctl_req *); | void gv_mirror(struct g_geom *gp, struct gctl_req *); | ||||
void gv_stripe(struct g_geom *gp, struct gctl_req *); | void gv_stripe(struct g_geom *gp, struct gctl_req *); | ||||
void gv_raid5(struct g_geom *gp, struct gctl_req *); | void gv_raid5(struct g_geom *gp, struct gctl_req *); | ||||
int gv_create_drive(struct gv_softc *, struct gv_drive *); | int gv_create_drive(struct gv_softc *, struct gv_drive *); | ||||
int gv_create_volume(struct gv_softc *, struct gv_volume *); | int gv_create_volume(struct gv_softc *, struct gv_volume *); | ||||
int gv_create_plex(struct gv_softc *, struct gv_plex *); | int gv_create_plex(struct gv_softc *, struct gv_plex *); | ||||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
void gv_parity_complete(struct gv_plex *, struct bio *); | void gv_parity_complete(struct gv_plex *, struct bio *); | ||||
void gv_rebuild_complete(struct gv_plex *, struct bio *); | void gv_rebuild_complete(struct gv_plex *, struct bio *); | ||||
int gv_sync_request(struct gv_plex *, struct gv_plex *, off_t, off_t, int, | int gv_sync_request(struct gv_plex *, struct gv_plex *, off_t, off_t, int, | ||||
caddr_t); | caddr_t); | ||||
int gv_sync_complete(struct gv_plex *, struct bio *); | int gv_sync_complete(struct gv_plex *, struct bio *); | ||||
extern u_int g_vinum_debug; | extern u_int g_vinum_debug; | ||||
#define G_VINUM_DEBUG(lvl, ...) do { \ | #define G_VINUM_DEBUG(lvl, ...) \ | ||||
if (g_vinum_debug >= (lvl)) { \ | _GEOM_DEBUG("GEOM_VINUM", g_vinum_debug, (lvl), NULL, __VA_ARGS__) | ||||
printf("GEOM_VINUM"); \ | #define G_VINUM_LOGREQ(lvl, bp, ...) \ | ||||
if (g_vinum_debug > 0) \ | _GEOM_DEBUG("GEOM_VINUM", g_vinum_debug, (lvl), (bp), __VA_ARGS__) | ||||
printf("[%u]", lvl); \ | |||||
printf(": "); \ | |||||
printf(__VA_ARGS__); \ | |||||
printf("\n"); \ | |||||
} \ | |||||
} while (0) | |||||
#define G_VINUM_LOGREQ(lvl, bp, ...) do { \ | |||||
if (g_vinum_debug >= (lvl)) { \ | |||||
printf("GEOM_VINUM"); \ | |||||
if (g_vinum_debug > 0) \ | |||||
printf("[%u]", lvl); \ | |||||
printf(": "); \ | |||||
printf(__VA_ARGS__); \ | |||||
printf(" "); \ | |||||
g_print_bio(bp); \ | |||||
printf("\n"); \ | |||||
} \ | |||||
} while (0) | |||||
#endif /* !_GEOM_VINUM_H_ */ | #endif /* !_GEOM_VINUM_H_ */ |