HomeSort by: relevance | last modified time | path
    Searched refs:segtype (Results 1 - 25 of 64) sorted by relevancy

1 2 3

  /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...]
segtype.h 1 /* $NetBSD: segtype.h,v 1.1.1.2 2009/12/02 00:26:34 haad Exp $ */
42 #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)->flags & SEG_AREAS_STRIPED ? 1 : 0
    [all...]
lv_alloc.h 21 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);
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...]
merge.c 24 #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,
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...]
  /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/include/
segtype.h 1 /* $NetBSD: segtype.h,v 1.1.1.2 2009/12/02 00:25:42 haad Exp $ */
42 #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)->flags & SEG_AREAS_STRIPED ? 1 : 0
    [all...]
lv_alloc.h 21 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);
  /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/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/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/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/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/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/tools/
lvcreate.c 388 * 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");
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))
  /src/external/gpl2/lvm2/dist/lib/activate/
activate.c 32 #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->ops->target_monitor_events
    [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/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);

Completed in 50 milliseconds

1 2 3