| /src/external/gpl2/lvm2/dist/lib/metadata/ |
| segtype.c | 1 /* $NetBSD: segtype.c,v 1.1.1.2 2009/12/02 00:26:42 haad Exp $ */ 20 #include "segtype.h" 25 struct segment_type *segtype; local 27 dm_list_iterate_items(segtype, &cmd->segtypes) { 28 if (!strcmp(segtype->name, str)) 29 return segtype; 32 if (!(segtype = init_unknown_segtype(cmd, str))) 35 segtype->library = NULL; 36 dm_list_add(&cmd->segtypes, &segtype->list); 38 return segtype; [all...] |
| mirror.c | 21 #include "segtype.h" 1010 seg->segtype = get_segtype_from_string(lv->vg->cmd, 1169 if (seg->segtype != 1189 const struct segment_type *segtype; local 1197 if (!(segtype = get_segtype_from_string(cmd, "mirror"))) 1204 if (!(ah = allocate_extents(lv->vg, NULL, segtype, 1, mirrors, 0, 0, 1379 const struct segment_type *segtype; local 1414 if (!(segtype = get_segtype_from_string(cmd, "mirror"))) 1417 if (activation() && segtype->ops->target_present && 1418 !segtype->ops->target_present(cmd, NULL, NULL)) 1463 const struct segment_type *segtype; local [all...] |
| lv_manip.c | 27 #include "segtype.h" 169 const struct segment_type *segtype, 192 if (!segtype) { 193 log_error("alloc_lv_segment: Missing segtype."); 197 seg->segtype = segtype; 221 const struct segment_type *segtype; local 223 segtype = get_segtype_from_string(lv->vg->cmd, "snapshot"); 224 if (!segtype) { 225 log_error("Failed to find snapshot segtype"); 2415 struct segment_type *segtype; local 2465 struct segment_type *segtype; local 2551 struct segment_type *segtype; local 2805 const struct segment_type *segtype; local [all...] |
| metadata-exported.h | 286 const struct segment_type *segtype; member in struct:lv_segment 503 const struct segment_type *segtype, 546 const struct segment_type *segtype; /* all */ member in struct:lvcreate_params
|
| /src/external/gpl2/lvm2/dist/lib/freeseg/ |
| freeseg.c | 19 #include "segtype.h" 33 return seg->segtype->name; 36 static void _freeseg_destroy(const struct segment_type *segtype) 38 dm_free((void *)segtype); 48 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 50 if (!segtype) 53 segtype->cmd = cmd; 54 segtype->ops = &_freeseg_ops; 55 segtype->name = "free" [all...] |
| /src/external/gpl2/lvm2/dist/lib/error/ |
| errseg.c | 19 #include "segtype.h" 33 return seg->segtype->name; 86 static void _errseg_destroy(const struct segment_type *segtype) 88 dm_free((void *)segtype); 104 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 106 if (!segtype) 109 segtype->cmd = cmd; 110 segtype->ops = &_error_ops; 111 segtype->name = "error" [all...] |
| /src/external/gpl2/lvm2/dist/lib/unknown/ |
| unknown.c | 19 #include "segtype.h" 34 return seg->segtype->name; 79 static void _unknown_destroy(const struct segment_type *segtype) 81 dm_free((void *)segtype); 96 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 98 if (!segtype) 101 segtype->cmd = cmd; 102 segtype->ops = &_unknown_ops; 103 segtype->name = dm_pool_strdup(cmd->mem, name) [all...] |
| /src/external/gpl2/lvm2/dist/lib/zero/ |
| zero.c | 19 #include "segtype.h" 32 return seg->segtype->name; 83 static void _zero_destroy(const struct segment_type *segtype) 85 dm_free((void *) segtype); 101 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 103 if (!segtype) 106 segtype->cmd = cmd; 107 segtype->ops = &_zero_ops; 108 segtype->name = "zero" [all...] |
| /src/external/gpl2/lvm2/dist/lib/format_pool/ |
| import_export.c | 28 #include "segtype.h" 184 struct segment_type *segtype; local 195 if (!(segtype = get_segtype_from_string(lv->vg->cmd, 199 if (!(seg = alloc_lv_segment(mem, segtype, lv, *le_cur, 226 struct segment_type *segtype; local 230 if (!(segtype = get_segtype_from_string(lv->vg->cmd, "striped"))) 236 if (!(seg = alloc_lv_segment(mem, segtype, lv, *le_cur,
|
| /src/external/gpl2/lvm2/dist/lib/striped/ |
| striped.c | 20 #include "segtype.h" 34 return (seg->area_count == 1) ? "linear" : seg->segtype->name; 204 static void _striped_destroy(const struct segment_type *segtype) 206 dm_free((void *)segtype); 225 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 227 if (!segtype) 230 segtype->cmd = cmd; 231 segtype->ops = &_striped_ops; 232 segtype->name = "striped" [all...] |
| /src/external/gpl2/lvm2/dist/lib/format1/ |
| import-extents.c | 23 #include "segtype.h" 215 struct segment_type *segtype; local 217 if (!(segtype = get_segtype_from_string(cmd, "striped"))) 223 if (!(seg = alloc_lv_segment(cmd->mem, segtype, lvm->lv, le, 266 struct segment_type *segtype; local 279 if (!(segtype = get_segtype_from_string(cmd, "striped"))) 293 if (!(seg = alloc_lv_segment(cmd->mem, segtype, lvm->lv,
|
| /src/external/gpl2/lvm2/dist/lib/snapshot/ |
| snapshot.c | 21 #include "segtype.h" 33 return seg->segtype->name; 277 static void _snap_destroy(const struct segment_type *segtype) 279 dm_free((void *)segtype); 306 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 311 if (!segtype) 314 segtype->cmd = cmd; 315 segtype->ops = &_snapshot_ops; 316 segtype->name = "snapshot" [all...] |
| /src/sys/arch/amd64/stand/prekern/ |
| elf.c | 339 int segtype; local 352 segtype = BTSEG_TEXT; 354 segtype = BTSEG_DATA; 356 segtype = BTSEG_RODATA; 365 secva = mm_map_segment(segtype, secpa, secsz, secalign);
|
| /src/external/gpl2/lvm2/dist/lib/format_text/ |
| import_vsn1.c | 26 #include "segtype.h" 301 struct segment_type *segtype; local 332 if (!(segtype = get_segtype_from_string(vg->cmd, segtype_str))) 335 if (segtype->ops->text_import_area_count && 336 !segtype->ops->text_import_area_count(sn_child, &area_count)) 339 if (!(seg = alloc_lv_segment(mem, segtype, lv, start_extent, 346 if (seg->segtype->ops->text_import && 347 !seg->segtype->ops->text_import(seg, sn_child, pv_hash))
|
| /src/external/gpl2/lvm2/dist/tools/ |
| lvresize.c | 30 const struct segment_type *segtype; member in struct:lvresize_params 413 lp->segtype = seg->segtype; 417 if (lp->segtype != arg_ptr_value(cmd, type_ARG, lp->segtype)) { 418 log_error("VolumeType does not match (%s)", lp->segtype->name); 614 !lv_extend(lv, lp->segtype, lp->stripes,
|
| pvmove.c | 26 const struct segment_type *segtype; local 34 if (!(segtype = get_segtype_from_string(cmd, "mirror"))) 37 if (activation() && segtype->ops->target_present && 38 !segtype->ops->target_present(cmd, NULL, clustered ? &attr : NULL))
|
| lvconvert.c | 38 struct segment_type *segtype; member in struct:lvconvert_params 155 if (!(lp->segtype = get_segtype_from_string(cmd, "snapshot"))) 159 (lp->segtype->flags & 218 if (!(lp->segtype = get_segtype_from_string(cmd, "mirror"))) 222 if (activation() && lp->segtype->ops->target_present && 223 !lp->segtype->ops->target_present(cmd, NULL, NULL)) { 225 "detected in your kernel", lp->segtype->name);
|
| /src/external/gpl2/lvm2/dist/lib/display/ |
| display.c | 23 #include "segtype.h" 647 log_print(" Type\t\t%s", seg->segtype->ops->name(seg)); 649 if (seg->segtype->ops->display) 650 seg->segtype->ops->display(seg); 811 const struct segment_type *segtype; local 813 dm_list_iterate_items(segtype, &cmd->segtypes) { 814 log_print("%s", segtype->name);
|
| /src/external/gpl2/lvm2/dist/lib/mirror/ |
| mirrored.c | 21 #include "segtype.h" 52 return seg->segtype->name; 554 static void _mirrored_destroy(const struct segment_type *segtype) 556 dm_free((void *) segtype); 586 struct segment_type *segtype = dm_malloc(sizeof(*segtype)); local 588 if (!segtype) 591 segtype->cmd = cmd; 592 segtype->ops = &_mirrored_ops; 593 segtype->name = "mirror" [all...] |
| /src/external/gpl2/lvm2/dist/lib/commands/ |
| toolcontext.c | 36 #include "segtype.h" 826 struct segment_type *segtype) 830 segtype->library = seglib->lib; 831 segtype->cmd = seglib->cmd; 834 if (strcmp(segtype2->name, segtype->name)) 838 segtype->name, seglib->libname); 839 segtype->ops->destroy(segtype); 843 dm_list_add(&seglib->cmd->segtypes, &segtype->list); 856 struct segment_type *segtype; local 872 struct segment_type *segtype; local 1209 struct segment_type *segtype; local [all...] |
| /src/external/gpl2/lvm2/dist/lib/activate/ |
| dev_manager.c | 24 #include "segtype.h" 363 struct segment_type *segtype; local 403 if (!(segtype = get_segtype_from_string(dm->cmd, type))) 406 if (segtype->ops->target_percent && 407 !segtype->ops->target_percent(&dm->target_state, 915 if (!seg->segtype->ops->add_target_line) { 917 "segment type %s", seg->segtype->name); 921 return seg->segtype->ops->add_target_line(dm, dm->mem, dm->cmd, 945 seg_present->segtype->name, seg->lv->name, 948 if (seg_present->segtype->ops->target_present & [all...] |
| /src/external/gpl2/lvm2/dist/include/ |
| metadata-exported.h | 286 const struct segment_type *segtype; member in struct:lv_segment 503 const struct segment_type *segtype, 546 const struct segment_type *segtype; /* all */ member in struct:lvcreate_params
|