Searched refs:segtype (Results 1 - 25 of 72) sorted by relevance

123

/netbsd-current/external/gpl2/lvm2/dist/lib/metadata/
H A Dsegtype.c20 #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;
H A Dsegtype.h42 #define seg_is_mirrored(seg) ((seg)->segtype->flags & SEG_AREAS_MIRRORED ? 1 : 0)
43 #define seg_is_striped(seg) ((seg)->segtype->flags & SEG_AREAS_STRIPED ? 1 : 0)
44 #define seg_is_snapshot(seg) ((seg)->segtype->flags & SEG_SNAPSHOT ? 1 : 0)
45 #define seg_is_virtual(seg) ((seg)->segtype->flags & SEG_VIRTUAL ? 1 : 0)
46 #define seg_can_split(seg) ((seg)->segtype->flags & SEG_CAN_SPLIT ? 1 : 0)
47 #define seg_cannot_be_zeroed(seg) ((seg)->segtype->flags & SEG_CANNOT_BE_ZEROED ? 1 : 0)
48 #define seg_monitored(seg) ((seg)->segtype->flags & SEG_MONITORED ? 1 : 0)
49 #define seg_unknown(seg) ((seg)->segtype->flags & SEG_UNKNOWN ? 1 : 0)
51 #define segtype_is_striped(segtype) ((segtype)
[all...]
H A Dlv_alloc.h21 const struct segment_type *segtype,
49 const struct segment_type *segtype,
60 const struct segment_type *segtype,
76 uint32_t extents, const struct segment_type *segtype);
H A Dlv_manip.c27 #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");
168 alloc_lv_segment(struct dm_pool *mem, const struct segment_type *segtype, struct logical_volume *lv, uint32_t le, uint32_t len, uint32_t status, uint32_t stripe_size, struct logical_volume *log_lv, uint32_t area_count, uint32_t area_len, uint32_t chunk_size, uint32_t region_size, uint32_t extents_copied) argument
524 calc_area_multiple(const struct segment_type *segtype, const uint32_t area_count) argument
536 _alloc_init(struct cmd_context *cmd, struct dm_pool *mem, const struct segment_type *segtype, alloc_policy_t alloc, uint32_t mirrors, uint32_t stripes, uint32_t log_count, uint32_t log_region_size, struct dm_list *parallel_areas) argument
644 _setup_alloced_segment(struct logical_volume *lv, uint32_t status, uint32_t area_count, uint32_t stripe_size, const struct segment_type *segtype, struct alloced_area *aa, uint32_t region_size, struct logical_volume *log_lv __attribute((unused))) argument
684 _setup_alloced_segments(struct logical_volume *lv, struct dm_list *alloced_areas, uint32_t area_count, uint32_t status, uint32_t stripe_size, const struct segment_type *segtype, uint32_t region_size, struct logical_volume *log_lv) argument
1283 lv_add_virtual_segment(struct logical_volume *lv, uint32_t status, uint32_t extents, const struct segment_type *segtype) argument
1308 allocate_extents(struct volume_group *vg, struct logical_volume *lv, const struct segment_type *segtype, uint32_t stripes, uint32_t mirrors, uint32_t log_count, uint32_t log_region_size, uint32_t extents, struct dm_list *allocatable_pvs, alloc_policy_t alloc, struct dm_list *parallel_areas) argument
1355 lv_add_segment(struct alloc_handle *ah, uint32_t first_area, uint32_t num_areas, struct logical_volume *lv, const struct segment_type *segtype, uint32_t stripe_size, uint32_t status, uint32_t region_size, struct logical_volume *log_lv) argument
1619 lv_extend(struct logical_volume *lv, const struct segment_type *segtype, uint32_t stripes, uint32_t stripe_size, uint32_t mirrors, uint32_t extents, struct physical_volume *mirrored_pv __attribute((unused)), uint32_t mirrored_pe __attribute((unused)), uint32_t status, struct dm_list *allocatable_pvs, alloc_policy_t alloc) argument
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...]
H A Dmerge.c24 #include "segtype.h"
34 if (!first || !second || first->segtype != second->segtype ||
35 !first->segtype->ops->merge_segments) return 0;
37 return first->segtype->ops->merge_segments(first, second);
81 area_multiplier = segtype_is_striped(seg->segtype) ?
268 " in LV %s", seg->segtype->name, le, lv->name);
273 if (!(split_seg = alloc_lv_segment(lv->vg->cmd->mem, seg->segtype,
H A Dmirror.c21 #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
1463 const struct segment_type *segtype; local
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/freeseg/
H A Dfreeseg.c19 #include "segtype.h"
33 return seg->segtype->name;
36 static void _freeseg_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/error/
H A Derrseg.c19 #include "segtype.h"
33 return seg->segtype->name;
86 static void _errseg_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/unknown/
H A Dunknown.c19 #include "segtype.h"
34 return seg->segtype->name;
79 static void _unknown_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/zero/
H A Dzero.c19 #include "segtype.h"
32 return seg->segtype->name;
83 static void _zero_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/include/
H A Dsegtype.h42 #define seg_is_mirrored(seg) ((seg)->segtype->flags & SEG_AREAS_MIRRORED ? 1 : 0)
43 #define seg_is_striped(seg) ((seg)->segtype->flags & SEG_AREAS_STRIPED ? 1 : 0)
44 #define seg_is_snapshot(seg) ((seg)->segtype->flags & SEG_SNAPSHOT ? 1 : 0)
45 #define seg_is_virtual(seg) ((seg)->segtype->flags & SEG_VIRTUAL ? 1 : 0)
46 #define seg_can_split(seg) ((seg)->segtype->flags & SEG_CAN_SPLIT ? 1 : 0)
47 #define seg_cannot_be_zeroed(seg) ((seg)->segtype->flags & SEG_CANNOT_BE_ZEROED ? 1 : 0)
48 #define seg_monitored(seg) ((seg)->segtype->flags & SEG_MONITORED ? 1 : 0)
49 #define seg_unknown(seg) ((seg)->segtype->flags & SEG_UNKNOWN ? 1 : 0)
51 #define segtype_is_striped(segtype) ((segtype)
[all...]
H A Dlv_alloc.h21 const struct segment_type *segtype,
49 const struct segment_type *segtype,
60 const struct segment_type *segtype,
76 uint32_t extents, const struct segment_type *segtype);
/netbsd-current/external/gpl2/lvm2/dist/lib/snapshot/
H A Dsnapshot.c21 #include "segtype.h"
33 return seg->segtype->name;
277 static void _snap_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/striped/
H A Dstriped.c20 #include "segtype.h"
34 return (seg->area_count == 1) ? "linear" : seg->segtype->name;
204 static void _striped_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/commands/
H A Dtoolcontext.c36 #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
825 lvm_register_segtype(struct segtype_library *seglib, struct segment_type *segtype) argument
872 struct segment_type *segtype; local
1209 struct segment_type *segtype; local
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/mirror/
H A Dmirrored.c21 #include "segtype.h"
52 return seg->segtype->name;
554 static void _mirrored_destroy(const struct segment_type *segtype) argument
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
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/format_pool/
H A Dimport_export.c28 #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,
/netbsd-current/external/gpl2/lvm2/dist/lib/format1/
H A Dimport-extents.c23 #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,
/netbsd-current/external/gpl2/lvm2/dist/tools/
H A Dlvcreate.c388 * Check selected options are compatible and determine segtype
390 lp->segtype = (const struct segment_type *)
436 if (!(lp->segtype = get_segtype_from_string(cmd, "snapshot")))
458 if (!(lp->segtype = get_segtype_from_string(cmd, "striped")))
472 if (activation() && lp->segtype->ops->target_present &&
473 !lp->segtype->ops->target_present(cmd, NULL, NULL)) {
475 "detected in your kernel", lp->segtype->name);
489 (lp->segtype->flags & SEG_CANNOT_BE_ZEROED) ? "n" : "y"), "n");
H A Dlvresize.c30 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,
H A Dpvmove.c26 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))
/netbsd-current/external/gpl2/lvm2/dist/lib/activate/
H A Dactivate.c32 #include "segtype.h"
63 if (seg->segtype->ops->modules_needed &&
64 !seg->segtype->ops->modules_needed(mem, seg, modules)) {
80 if (snap_seg->segtype->ops->modules_needed &&
81 !snap_seg->segtype->ops->modules_needed(mem, snap_seg,
794 if (seg->segtype->ops->target_monitored)
795 monitored = seg->segtype->ops->target_monitored(seg, &pending);
797 continue; /* segtype doesn't support registration */
807 else if (seg->segtype->ops->target_monitor_events)
808 monitor_fn = seg->segtype
[all...]
/netbsd-current/sys/arch/amd64/stand/prekern/
H A Delf.c339 int segtype; local
352 segtype = BTSEG_TEXT;
354 segtype = BTSEG_DATA;
356 segtype = BTSEG_RODATA;
365 secva = mm_map_segment(segtype, secpa, secsz, secalign);
/netbsd-current/external/gpl2/lvm2/dist/lib/format_text/
H A Dimport_vsn1.c26 #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))
/netbsd-current/external/gpl2/lvm2/dist/lib/display/
H A Ddisplay.c23 #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);

Completed in 206 milliseconds

123