/netbsd/external/gpl2/lvm2/dist/lib/metadata/ |
H A D | mirror.c | 276 if (!vg_write(log_lv->vg) || !vg_commit(log_lv->vg)) in _init_mirror_log() 279 backup(log_lv->vg); in _init_mirror_log() 292 if (activation() && !set_lv(cmd, log_lv, log_lv->size, in _init_mirror_log() 337 if (!vg_write(log_lv->vg) || !vg_commit(log_lv->vg)) in _init_mirror_log() 341 backup(log_lv->vg); in _init_mirror_log() 414 log_lv = mirrored_seg->log_lv; in detach_mirror_log() 420 return log_lv; in detach_mirror_log() 1302 return log_lv; in _create_mirror_log() 1363 return log_lv; in _set_up_mirror_log() 1368 seg->log_lv = log_lv; in attach_mirror_log() [all …]
|
H A D | lv_manip.c | 174 struct logical_volume *log_lv, in alloc_lv_segment() argument 208 seg->log_lv = log_lv; in alloc_lv_segment() 211 if (log_lv && !attach_mirror_log(seg, log_lv)) in alloc_lv_segment() 419 if (seg->log_lv && !lv_remove(seg->log_lv)) in _lv_reduce() 698 region_size, log_lv)) in _setup_alloced_segments() 842 if (!(r = _for_each_pv(cmd, seg->log_lv, 0, seg->log_lv->le_count, in _for_each_pv() 1377 region_size, log_lv)) in lv_add_segment() 1420 log_lv, in _convert_seg_to_mirror() 1574 log_lv->size += (uint64_t) log_lv->le_count * log_lv->vg->extent_size; in lv_add_log_segment() 1577 !log_lv->vg->fid->fmt->ops->lv_setup(log_lv->vg->fid, log_lv)) in lv_add_log_segment() [all …]
|
H A D | merge.c | 91 if (complete_vg && seg->log_lv) { in check_lv_segments() 99 if (!(seg->log_lv->status & MIRROR_LOG)) { in check_lv_segments() 102 lv->name, seg_count, seg->log_lv->name); in check_lv_segments() 106 if (!(seg2 = first_seg(seg->log_lv)) || in check_lv_segments() 212 if (seg->log_lv == lv) in check_lv_segments() 276 seg->log_lv, in _lv_split_segment()
|
H A D | lv_alloc.h | 26 struct logical_volume *log_lv, 64 struct logical_volume *log_lv); 74 int lv_add_log_segment(struct alloc_handle *ah, struct logical_volume *log_lv);
|
H A D | metadata.c | 369 if (lvseg->log_lv) in move_pvs_used_by_lv() 371 lvseg->log_lv->name)) in move_pvs_used_by_lv() 1940 if (lvseg->log_lv && !fn(lvseg->log_lv, data)) in _lv_each_dependency()
|
H A D | metadata-exported.h | 302 struct logical_volume *log_lv; member
|
/netbsd/external/gpl2/lvm2/dist/tools/ |
H A D | lvchange.c | 158 struct logical_volume *log_lv; in lvchange_resync() local 217 log_lv = first_seg(lv)->log_lv; in lvchange_resync() 222 (log_lv) ? "disk-logged" : "core-logged", in lvchange_resync() 242 if (log_lv) { in lvchange_resync() 266 if (!activate_lv(cmd, log_lv)) { in lvchange_resync() 268 log_lv->name); in lvchange_resync() 273 if (!set_lv(cmd, log_lv, log_lv->size, 0)) { in lvchange_resync() 275 if (!deactivate_lv(cmd, log_lv)) in lvchange_resync() 281 if (!deactivate_lv(cmd, log_lv)) { in lvchange_resync() 283 "for resync", log_lv->name); in lvchange_resync() [all …]
|
H A D | vgsplit.c | 183 log_in = (!seg->log_lv || _lv_is_in_vg(vg_to, seg->log_lv)); in _move_mirrors() 186 (seg_in && seg->log_lv && !log_in) || in _move_mirrors() 187 (!seg_in && seg->log_lv && log_in)) { in _move_mirrors()
|
H A D | lvconvert.c | 502 return !first_seg(_original_lv(lv))->log_lv; in _using_corelog() 535 struct logical_volume *log_lv, *layer_lv; in _lvconvert_mirrors() local 592 log_lv=first_seg(lv)->log_lv; in _lvconvert_mirrors() 593 if (!log_lv || log_lv->status & PARTIAL_LV) in _lvconvert_mirrors() 739 if (seg->log_lv && !_insert_lvconvert_layer(cmd, lv)) { in _lvconvert_mirrors()
|
H A D | vgreduce.c | 290 if (mirrored_seg->log_lv) { in _make_vg_consistent() 291 dm_list_iterate_items(seg, &mirrored_seg->log_lv->segments) { in _make_vg_consistent()
|
H A D | reporter.c | 93 .log_lv = NULL, in _pvsegs_sub_single()
|
/netbsd/external/gpl2/lvm2/dist/lib/mirror/ |
H A D | mirrored.c | 62 if (seg->log_lv) in _mirrored_display() 63 log_print(" Mirror log volume\t%s", seg->log_lv->name); in _mirrored_display() 124 if (!(seg->log_lv = find_lv(seg->lv->vg, logname))) { in _mirrored_text_import() 130 seg->log_lv->status |= MIRROR_LOG; in _mirrored_text_import() 156 if (seg->log_lv) in _mirrored_text_export() 157 outf(f, "mirror_log = \"%s\"", seg->log_lv->name); in _mirrored_text_export() 259 if (seg->log_lv) { in _add_log() 261 if (!(log_dlid = build_dlid(dm, seg->log_lv->lvid.s, NULL))) { in _add_log() 263 seg->log_lv->name); in _add_log() 536 if (seg->log_lv && in _mirrored_modules_needed() [all …]
|
/netbsd/external/gpl2/lvm2/dist/include/ |
H A D | lv_alloc.h | 26 struct logical_volume *log_lv, 64 struct logical_volume *log_lv); 74 int lv_add_log_segment(struct alloc_handle *ah, struct logical_volume *log_lv);
|
H A D | metadata-exported.h | 302 struct logical_volume *log_lv; member
|
/netbsd/external/gpl2/lvm2/dist/lib/report/ |
H A D | report.c | 476 if (!seg_is_mirrored(seg) || !seg->log_lv) in _loglv_disp() 479 (const char **) &seg->log_lv->name); in _loglv_disp()
|
/netbsd/external/gpl2/lvm2/dist/lib/activate/ |
H A D | dev_manager.c | 957 if (seg->log_lv && in _add_segment_to_dtree() 958 !_add_new_lv_to_dtree(dm, dtree, seg->log_lv, NULL)) in _add_segment_to_dtree()
|
/netbsd/external/gpl2/lvm2/dist/ |
H A D | WHATS_NEW | 494 Fix add_mirror_images not to dereference uninitialized log_lv upon failure.
|