| /freebsd-14-stable/sys/geom/vinum/ |
| HD | geom_vinum.h | 39 int gv_create_plex(struct gv_softc *, struct gv_plex *); 49 int gv_start_plex(struct gv_plex *); 66 int gv_rename_plex(struct gv_softc *, struct gv_plex *, char *, int); 75 void gv_rm_plex(struct gv_softc *, struct gv_plex *); 79 int gv_sdstatemap(struct gv_plex *); 84 int gv_set_plex_state(struct gv_plex *, int, int); 86 void gv_update_plex_state(struct gv_plex *); 94 struct gv_plex *gv_find_plex(struct gv_softc *, char *); 99 int gv_is_striped(struct gv_plex *); 106 int gv_sd_to_plex(struct gv_sd *, struct gv_plex *); [all …]
|
| HD | geom_vinum_init.c | 42 static int gv_rebuild_plex(struct gv_plex *); 43 static int gv_init_plex(struct gv_plex *); 44 static int gv_grow_plex(struct gv_plex *); 45 static int gv_sync_plex(struct gv_plex *, struct gv_plex *); 46 static struct gv_plex *gv_find_good_plex(struct gv_volume *); 53 struct gv_plex *p; in gv_start_obj() 103 gv_start_plex(struct gv_plex *p) in gv_start_plex() 106 struct gv_plex *up; in gv_start_plex() 168 struct gv_plex *p; in gv_start_vol() 190 gv_sync_plex(struct gv_plex *p, struct gv_plex *up) in gv_sync_plex() [all …]
|
| HD | geom_vinum_var.h | 230 LIST_HEAD(,gv_plex) plexes; /* All plexes. */ 306 struct gv_plex *plex_sc; /* Pointer to associated plex. */ 316 struct gv_plex { struct 352 LIST_ENTRY(gv_plex) in_volume; /* Plex list of associated volume. */ argument 353 LIST_ENTRY(gv_plex) plex; /* Entry in the vinum config. */ 378 LIST_HEAD(,gv_plex) plexes; /* List of attached plexes. */ argument 389 struct gv_plex *last_read_plex;
|
| HD | geom_vinum_plex.c | 43 static int gv_check_parity(struct gv_plex *, struct bio *, 45 static int gv_normal_parity(struct gv_plex *, struct bio *, 47 static void gv_plex_flush(struct gv_plex *); 48 static int gv_plex_offset(struct gv_plex *, off_t, off_t, off_t *, off_t *, 50 static int gv_plex_normal_request(struct gv_plex *, struct bio *, off_t, 55 gv_plex_start(struct gv_plex *p, struct bio *bp) in gv_plex_start() 128 gv_plex_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off, in gv_plex_offset() 197 gv_plex_normal_request(struct gv_plex *p, struct bio *bp, off_t boff, in gv_plex_normal_request() 303 gv_plex_normal_done(struct gv_plex *p, struct bio *bp) in gv_plex_normal_done() 329 gv_plex_raid5_done(struct gv_plex *p, struct bio *bp) in gv_plex_raid5_done() [all …]
|
| HD | geom_vinum_subr.c | 57 static off_t gv_plex_smallest_sd(struct gv_plex *); 64 struct gv_plex *p, *p2; in gv_parse_config() 185 struct gv_plex *p; in gv_format_config() 239 gv_plex_smallest_sd(struct gv_plex *p) in gv_plex_smallest_sd() 262 struct gv_plex *p; in gv_plexdown() 276 gv_sd_to_plex(struct gv_sd *s, struct gv_plex *p) in gv_sd_to_plex() 409 gv_sdcount(struct gv_plex *p, int growing) in gv_sdcount() 427 gv_plex_size(struct gv_plex *p) in gv_plex_size() 460 struct gv_plex *p; in gv_vol_size() 479 gv_update_plex_config(struct gv_plex *p) in gv_update_plex_config() [all …]
|
| HD | geom_vinum_share.c | 419 struct gv_plex * 422 struct gv_plex *p; in gv_alloc_plex() 425 p = g_malloc(sizeof(struct gv_plex), M_NOWAIT); in gv_alloc_plex() 427 p = malloc(sizeof(struct gv_plex)); in gv_alloc_plex() 431 bzero(p, sizeof(struct gv_plex)); in gv_alloc_plex() 526 struct gv_plex * 529 struct gv_plex *p; in gv_new_plex()
|
| HD | geom_vinum_raid5.c | 42 static int gv_raid5_offset(struct gv_plex *, off_t, off_t, 46 static int gv_raid5_request(struct gv_plex *, struct gv_raid5_packet *, 48 static int gv_raid5_check(struct gv_plex *, struct gv_raid5_packet *, 50 static int gv_raid5_rebuild(struct gv_plex *, struct gv_raid5_packet *, 54 gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff, in gv_raid5_start() 148 gv_stripe_active(struct gv_plex *p, struct bio *bp) in gv_stripe_active() 177 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, in gv_raid5_check() 255 gv_raid5_rebuild(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, in gv_raid5_rebuild() 343 gv_raid5_request(struct gv_plex *p, struct gv_raid5_packet *wp, in gv_raid5_request() 585 gv_raid5_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off, in gv_raid5_offset()
|
| HD | geom_vinum_rm.c | 46 struct gv_plex *p; in gv_remove() 167 struct gv_plex *p, *p2; in gv_resetconfig() 203 struct gv_plex *p, *p2; in gv_rm_vol() 234 gv_rm_plex(struct gv_softc *sc, struct gv_plex *p) in gv_rm_plex() 271 struct gv_plex *p; in gv_rm_sd() 305 struct gv_plex *p; in gv_rm_drive()
|
| HD | geom_vinum_raid5.h | 51 struct gv_raid5_packet * gv_raid5_start(struct gv_plex *, struct bio *, 53 int gv_stripe_active(struct gv_plex *, struct bio *);
|
| HD | geom_vinum_state.c | 46 struct gv_plex *p; in gv_setstate() 158 struct gv_plex *p; in gv_set_sd_state() 283 gv_set_plex_state(struct gv_plex *p, int newstate, int flags) in gv_set_plex_state() 414 gv_update_plex_state(struct gv_plex *p) in gv_update_plex_state() 471 struct gv_plex *p; in gv_update_vol_state() 501 gv_sdstatemap(struct gv_plex *p) in gv_sdstatemap()
|
| HD | geom_vinum_share.h | 46 struct gv_plex *gv_alloc_plex(void); 49 struct gv_plex *gv_new_plex(int, char **);
|
| HD | geom_vinum_rename.c | 49 struct gv_plex *p; in gv_rename() 147 gv_rename_plex(struct gv_softc *sc, struct gv_plex *p, char *newname, int flags) in gv_rename_plex() 228 struct gv_plex *p; in gv_rename_vol()
|
| HD | geom_vinum_create.c | 195 gv_create_plex(struct gv_softc *sc, struct gv_plex *p) in gv_create_plex() 232 struct gv_plex *p; in gv_create_sd() 314 struct gv_plex *p; in gv_concat() 379 struct gv_plex *p; in gv_mirror() 471 struct gv_plex *p; in gv_raid5() 549 struct gv_plex *p; in gv_stripe()
|
| HD | geom_vinum_volume.c | 61 struct gv_plex *p, *lp; in gv_volume_start() 143 struct gv_plex *p; in gv_bio_done()
|
| HD | geom_vinum_list.c | 42 void gv_lpi(struct gv_plex *, struct sbuf *, int); 51 struct gv_plex *p; in gv_list() 243 struct gv_plex *p; in gv_lvi() 277 struct gv_plex *p; in gv_lp() 297 gv_lpi(struct gv_plex *p, struct sbuf *sb, int flags) in gv_lpi()
|
| HD | geom_vinum.c | 217 struct gv_plex *p; in gv_attach() 276 struct gv_plex *p; in gv_detach() 310 struct gv_plex *p, *p2; in gv_create() 528 struct gv_plex *p; in gv_parityop() 630 struct gv_plex *p; in gv_worker()
|
| HD | geom_vinum_move.c | 108 struct gv_plex *p; in gv_move_sd()
|
| /freebsd-14-stable/sbin/gvinum/ |
| HD | gvinum.c | 177 struct gv_plex *p; in gvinum_create()
|