/netbsd-src/external/gpl2/lvm2/dist/lib/report/ |
H A D | report.c | 60 static int _string_disp(struct dm_report *rh, struct dm_pool *mem __attribute((unused)), in _string_disp() 67 static int _dev_name_disp(struct dm_report *rh, struct dm_pool *mem __attribute((unused)), in _dev_name_disp() 76 static int _format_pvsegs(struct dm_pool *mem, struct dm_report_field *field, in _format_pvsegs() 151 static int _devices_disp(struct dm_report *rh __attribute((unused)), struct dm_pool *mem, in _devices_disp() 158 static int _peranges_disp(struct dm_report *rh __attribute((unused)), struct dm_pool *mem, in _peranges_disp() 165 static int _tags_disp(struct dm_report *rh __attribute((unused)), struct dm_pool *mem, in _tags_disp() 195 static int _modules_disp(struct dm_report *rh, struct dm_pool *mem, in _modules_disp() 213 static int _vgfmt_disp(struct dm_report *rh, struct dm_pool *mem, in _vgfmt_disp() 227 static int _pvfmt_disp(struct dm_report *rh, struct dm_pool *mem, in _pvfmt_disp() 242 static int _lvkmaj_disp(struct dm_report *rh, struct dm_pool *mem __attribute((unused)), in _lvkmaj_disp() [all …]
|
/netbsd-src/external/gpl2/lvm2/dist/libdm/mm/ |
H A D | pool-debug.c | 34 struct dm_pool { struct 51 struct dm_pool *dm_pool_create(const char *name, size_t chunk_hint) in dm_pool_create() argument 53 struct dm_pool *mem = dm_malloc(sizeof(*mem)); in dm_pool_create() 82 static void _free_blocks(struct dm_pool *p, struct block *b) in _free_blocks() 97 static void _pool_stats(struct dm_pool *p, const char *action) in _pool_stats() 109 void dm_pool_destroy(struct dm_pool *p) in dm_pool_destroy() 117 void *dm_pool_alloc(struct dm_pool *p, size_t s) in dm_pool_alloc() 122 static void _append_block(struct dm_pool *p, struct block *b) in _append_block() 170 void *dm_pool_alloc_aligned(struct dm_pool *p, size_t s, unsigned alignment) in dm_pool_alloc_aligned() 182 void dm_pool_empty(struct dm_pool *p) in dm_pool_empty() [all …]
|
H A D | pool-fast.c | 25 struct dm_pool { struct 35 struct chunk *_new_chunk(struct dm_pool *p, size_t s); argument 40 struct dm_pool *dm_pool_create(const char *name, size_t chunk_hint) in dm_pool_create() 43 struct dm_pool *p = dm_malloc(sizeof(*p)); in dm_pool_create() 61 void dm_pool_destroy(struct dm_pool *p) in dm_pool_destroy() 76 void *dm_pool_alloc(struct dm_pool *p, size_t s) in dm_pool_alloc() 81 void *dm_pool_alloc_aligned(struct dm_pool *p, size_t s, unsigned alignment) in dm_pool_alloc_aligned() 108 void dm_pool_empty(struct dm_pool *p) in dm_pool_empty() 119 void dm_pool_free(struct dm_pool *p, void *ptr) in dm_pool_free() 143 int dm_pool_begin_object(struct dm_pool *p, size_t hint) in dm_pool_begin_object() [all …]
|
H A D | pool.c | 30 char *dm_pool_strdup(struct dm_pool *p, const char *str) in dm_pool_strdup() 40 char *dm_pool_strndup(struct dm_pool *p, const char *str, size_t n) in dm_pool_strndup() 52 void *dm_pool_zalloc(struct dm_pool *p, size_t s) in dm_pool_zalloc() 64 struct dm_pool *p; in dm_pools_check_leaks()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/format1/ |
H A D | disk-rep.h | 163 struct dm_pool *mem; 196 struct dm_pool *mem, const char *vg_name); 200 struct dm_pool *mem, struct dm_list *results); 208 int import_pv(const struct format_type *fmt, struct dm_pool *mem, 212 int export_pv(struct cmd_context *cmd, struct dm_pool *mem, 216 int import_vg(struct dm_pool *mem, 220 int import_lv(struct cmd_context *cmd, struct dm_pool *mem, 228 int import_pvs(const struct format_type *fmt, struct dm_pool *mem, 232 int import_lvs(struct dm_pool *mem, struct volume_group *vg, struct dm_list *pvds); 236 int import_snapshots(struct dm_pool *mem, struct volume_group *vg,
|
H A D | import-export.c | 43 static char *_create_lv_name(struct dm_pool *mem, const char *full_name) in _create_lv_name() 55 int import_pv(const struct format_type *fmt, struct dm_pool *mem, in import_pv() 142 int export_pv(struct cmd_context *cmd, struct dm_pool *mem __attribute((unused)), in export_pv() 218 int import_vg(struct dm_pool *mem, in import_vg() 299 int import_lv(struct cmd_context *cmd, struct dm_pool *mem, in import_lv() 426 int import_pvs(const struct format_type *fmt, struct dm_pool *mem, in import_pvs() 450 static struct logical_volume *_add_lv(struct dm_pool *mem, in _add_lv() 473 int import_lvs(struct dm_pool *mem, struct volume_group *vg, struct dm_list *pvds) in import_lvs() 559 int import_snapshots(struct dm_pool *mem __attribute((unused)), struct volume_group *vg, in import_snapshots()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/format_pool/ |
H A D | disk_rep.h | 142 int import_pool_vg(struct volume_group *vg, struct dm_pool *mem, struct dm_list *pls); 143 int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem, 146 struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls); 147 int import_pool_pv(const struct format_type *fmt, struct dm_pool *mem, 150 int import_pool_segments(struct dm_list *lvs, struct dm_pool *mem, 153 struct dm_pool *mem, struct dm_list *head); 155 struct device *dev, struct dm_pool *mem,
|
H A D | import_export.c | 33 int import_pool_vg(struct volume_group *vg, struct dm_pool *mem, struct dm_list *pls) in import_pool_vg() 59 int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem, struct dm_list *pls) in import_pool_lvs() 105 struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls) in import_pool_pvs() 131 int import_pool_pv(const struct format_type *fmt, struct dm_pool *mem, in import_pool_pv() 179 static int _add_stripe_seg(struct dm_pool *mem, in _add_stripe_seg() 221 static int _add_linear_seg(struct dm_pool *mem, in _add_linear_seg() 258 int import_pool_segments(struct dm_list *lvs, struct dm_pool *mem, in import_pool_segments()
|
H A D | format_pool.c | 30 static struct user_subpool *_build_usp(struct dm_list *pls, struct dm_pool *mem, in _build_usp() 104 *fid, struct dm_pool *mem, in _build_vg_from_pds() 107 struct dm_pool *smem = fid->fmt->cmd->mem; in _build_vg_from_pds() 165 struct dm_pool *mem = dm_pool_create("pool vg_read", VG_MEMPOOL_CHUNK); in _pool_vg_read() 213 struct dm_pool *mem = dm_pool_create("pool pv_read", 1024); in _pool_pv_read()
|
/netbsd-src/external/gpl2/lvm2/dist/libdm/ |
H A D | libdevmapper.h | 521 struct dm_pool; 524 struct dm_pool *dm_pool_create(const char *name, size_t chunk_hint); 525 void dm_pool_destroy(struct dm_pool *p); 528 void *dm_pool_alloc(struct dm_pool *p, size_t s); 529 void *dm_pool_alloc_aligned(struct dm_pool *p, size_t s, unsigned alignment); 530 void dm_pool_empty(struct dm_pool *p); 531 void dm_pool_free(struct dm_pool *p, void *ptr); 578 int dm_pool_begin_object(struct dm_pool *p, size_t hint); 579 int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta); 580 void *dm_pool_end_object(struct dm_pool *p); [all …]
|
/netbsd-src/external/gpl2/lvm2/dist/include/ |
H A D | libdevmapper.h | 521 struct dm_pool; 524 struct dm_pool *dm_pool_create(const char *name, size_t chunk_hint); 525 void dm_pool_destroy(struct dm_pool *p); 528 void *dm_pool_alloc(struct dm_pool *p, size_t s); 529 void *dm_pool_alloc_aligned(struct dm_pool *p, size_t s, unsigned alignment); 530 void dm_pool_empty(struct dm_pool *p); 531 void dm_pool_free(struct dm_pool *p, void *ptr); 578 int dm_pool_begin_object(struct dm_pool *p, size_t hint); 579 int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta); 580 void *dm_pool_end_object(struct dm_pool *p); [all …]
|
H A D | str_list.h | 21 struct dm_list *str_list_create(struct dm_pool *mem); 22 int str_list_add(struct dm_pool *mem, struct dm_list *sll, const char *str); 27 int str_list_dup(struct dm_pool *mem, struct dm_list *sllnew,
|
H A D | segtype.h | 77 int (*add_target_line) (struct dev_manager *dm, struct dm_pool *mem, 84 struct dm_pool * mem, 92 int (*modules_needed) (struct dm_pool *mem,
|
H A D | pv_alloc.h | 19 int alloc_pv_segment_whole_pv(struct dm_pool *mem, struct physical_volume *pv); 20 int peg_dup(struct dm_pool *mem, struct dm_list *peg_new, struct dm_list *peg_old);
|
/netbsd-src/external/gpl2/lvm2/dist/lib/datastruct/ |
H A D | str_list.h | 21 struct dm_list *str_list_create(struct dm_pool *mem); 22 int str_list_add(struct dm_pool *mem, struct dm_list *sll, const char *str); 27 int str_list_dup(struct dm_pool *mem, struct dm_list *sllnew,
|
H A D | str_list.c | 21 struct dm_list *str_list_create(struct dm_pool *mem) in str_list_create() 35 int str_list_add(struct dm_pool *mem, struct dm_list *sll, const char *str) in str_list_add() 67 int str_list_dup(struct dm_pool *mem, struct dm_list *sllnew, in str_list_dup()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/metadata/ |
H A D | pv_map.c | 42 static int _create_single_area(struct dm_pool *mem, struct pv_map *pvm, in _create_single_area() 60 static int _create_alloc_areas_for_pv(struct dm_pool *mem, struct pv_map *pvm, in _create_alloc_areas_for_pv() 103 static int _create_all_areas_for_pv(struct dm_pool *mem, struct pv_map *pvm, in _create_all_areas_for_pv() 126 static int _create_maps(struct dm_pool *mem, struct dm_list *pvs, struct dm_list *pvms) in _create_maps() 165 struct dm_list *create_pv_maps(struct dm_pool *mem, struct volume_group *vg, in create_pv_maps()
|
H A D | segtype.h | 77 int (*add_target_line) (struct dev_manager *dm, struct dm_pool *mem, 84 struct dm_pool * mem, 92 int (*modules_needed) (struct dm_pool *mem,
|
H A D | pv_alloc.h | 19 int alloc_pv_segment_whole_pv(struct dm_pool *mem, struct physical_volume *pv); 20 int peg_dup(struct dm_pool *mem, struct dm_list *peg_new, struct dm_list *peg_old);
|
/netbsd-src/external/gpl2/lvm2/dist/lib/filters/ |
H A D | filter-regex.c | 23 struct dm_pool *mem; 28 static int _extract_pattern(struct dm_pool *mem, const char *pat, in _extract_pattern() 94 struct dm_pool *scratch; in _build_matcher() 191 struct dm_pool *mem = dm_pool_create("filter regex", 10 * 1024); in regex_filter_create()
|
/netbsd-src/external/gpl2/lvm2/dist/libdm/regex/ |
H A D | ttree.c | 29 struct dm_pool *mem; 64 static struct node *_tree_node(struct dm_pool *mem, unsigned int k) in _tree_node() 107 struct ttree *ttree_create(struct dm_pool *mem, unsigned int klen) in ttree_create()
|
H A D | parse_rx.h | 50 struct rx_node *rx_parse_str(struct dm_pool *mem, const char *str); 51 struct rx_node *rx_parse_tok(struct dm_pool *mem,
|
H A D | parse_rx.c | 22 struct dm_pool *mem; 204 static struct rx_node *_node(struct dm_pool *mem, int type, in _node() 334 struct rx_node *rx_parse_tok(struct dm_pool *mem, in rx_parse_tok() 359 struct rx_node *rx_parse_str(struct dm_pool *mem, const char *str) in rx_parse_str()
|
H A D | matcher.c | 39 struct dm_pool *scratch, *mem; 171 static struct dfa_state *_create_dfa_state(struct dm_pool *mem) in _create_dfa_state() 176 static struct state_queue *_create_state_queue(struct dm_pool *mem, in _create_state_queue() 268 struct dm_regex *dm_regex_create(struct dm_pool *mem, const char **patterns, in dm_regex_create() 275 struct dm_pool *scratch = dm_pool_create("regex matcher", 10 * 1024); in dm_regex_create()
|
/netbsd-src/external/gpl2/lvm2/dist/lib/format_text/ |
H A D | import_vsn1.c | 29 typedef int (*section_fn) (struct format_instance * fid, struct dm_pool * mem, 155 static int _read_pv(struct format_instance *fid, struct dm_pool *mem, in _read_pv() 292 static int _read_segment(struct dm_pool *mem, struct volume_group *vg, in _read_segment() 439 static int _read_segments(struct dm_pool *mem, struct volume_group *vg, in _read_segments() 492 struct dm_pool *mem, in _read_lvnames() 558 struct dm_pool *mem, in _read_lvsegs() 612 struct dm_pool *mem, in _read_sections() 641 struct dm_pool *mem = dm_pool_create("lvm2 vg_read", VG_MEMPOOL_CHUNK); in _read_vg() 796 static void _read_desc(struct dm_pool *mem, in _read_desc() 817 struct dm_pool *mem = fmt->cmd->mem; in _read_vgname()
|