Lines Matching refs:seg
31 static const char *_snap_name(const struct lv_segment *seg)
33 return seg->segtype->name;
36 static int _snap_text_import(struct lv_segment *seg, const struct config_node *sn,
65 if (!(cow = find_lv(seg->lv->vg, cow_name))) {
71 if (!(org = find_lv(seg->lv->vg, org_name))) {
77 init_snapshot_seg(seg, org, cow, chunk_size);
82 static int _snap_text_export(const struct lv_segment *seg, struct formatter *f)
84 outf(f, "chunk_size = %u", seg->chunk_size);
85 outf(f, "origin = \"%s\"", seg->origin->name);
86 outf(f, "cow_store = \"%s\"", seg->cow->name);
96 struct lv_segment *seg __attribute((unused)),
121 const struct lv_segment *seg __attribute((unused)),
183 static int _target_registered(struct lv_segment *seg, int *pending)
191 lv = seg->lv;
198 if (!(name = build_dm_name(vg->cmd->mem, vg->name, seg->cow->name, NULL)))
221 static int _target_set_events(struct lv_segment *seg,
225 struct volume_group *vg = seg->lv->vg;
232 if (!(name = build_dm_name(vg->cmd->mem, vg->name, seg->cow->name, NULL)))
250 static int _target_register_events(struct lv_segment *seg,
253 return _target_set_events(seg, events, 1);
256 static int _target_unregister_events(struct lv_segment *seg,
259 return _target_set_events(seg, events, 0);
266 const struct lv_segment *seg __attribute((unused)),