Home
last modified time | relevance | path

Searched refs:log_lv (Results 1 – 17 of 17) sorted by relevance

/netbsd-src/external/gpl2/lvm2/dist/lib/metadata/
H A Dmirror.c244 struct logical_volume *log_lv, int in_sync, in _init_mirror_log() argument
249 uint32_t orig_status = log_lv->status; in _init_mirror_log()
259 if (lv_info(cmd, log_lv, &info, 0, 0) && info.exists) { in _init_mirror_log()
260 if (!deactivate_lv(cmd, log_lv)) in _init_mirror_log()
266 lv_set_visible(log_lv); in _init_mirror_log()
270 if (!str_list_add(cmd->mem, &log_lv->tags, sl->str)) { in _init_mirror_log()
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()
281 if (!activate_lv(cmd, log_lv)) { in _init_mirror_log()
288 if (!str_list_del(&log_lv->tags, sl->str)) in _init_mirror_log()
[all …]
H A Dlv_manip.c174 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()
650 struct logical_volume *log_lv __attribute((unused))) in _setup_alloced_segment()
691 struct logical_volume *log_lv) in _setup_alloced_segments() argument
698 region_size, log_lv)) in _setup_alloced_segments()
841 if (!only_single_area_segments && seg_is_mirrored(seg) && seg->log_lv) { in _for_each_pv()
842 if (!(r = _for_each_pv(cmd, seg->log_lv, 0, seg->log_lv->le_count, in _for_each_pv()
1362 struct logical_volume *log_lv) in lv_add_segment() argument
[all …]
H A Dmerge.c91 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 Dlv_alloc.h26 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 Dmetadata.c369 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 Dmetadata-exported.h302 struct logical_volume *log_lv; member
/netbsd-src/external/gpl2/lvm2/dist/tools/
H A Dlvchange.c158 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()
231 if (!log_lv && !(lv->status & MIRROR_NOTSYNCED)) { in lvchange_resync()
242 if (log_lv) { in lvchange_resync()
248 if (!attach_mirror_log(first_seg(lv), log_lv)) in lvchange_resync()
257 if (!attach_mirror_log(first_seg(lv), log_lv)) in lvchange_resync()
266 if (!activate_lv(cmd, log_lv)) { in lvchange_resync()
268 log_lv->name); in lvchange_resync()
272 log_very_verbose("Clearing log device %s", log_lv->name); in lvchange_resync()
[all …]
H A Dvgsplit.c183 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 Dlvconvert.c502 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 Dvgreduce.c290 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 Dreporter.c93 .log_lv = NULL, in _pvsegs_sub_single()
/netbsd-src/external/gpl2/lvm2/dist/lib/mirror/
H A Dmirrored.c62 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-src/external/gpl2/lvm2/dist/include/
H A Dlv_alloc.h26 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 Dmetadata-exported.h302 struct logical_volume *log_lv; member
/netbsd-src/external/gpl2/lvm2/dist/lib/report/
H A Dreport.c476 if (!seg_is_mirrored(seg) || !seg->log_lv) in _loglv_disp()
479 (const char **) &seg->log_lv->name); in _loglv_disp()
/netbsd-src/external/gpl2/lvm2/dist/lib/activate/
H A Ddev_manager.c957 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-src/external/gpl2/lvm2/dist/
H A DWHATS_NEW494 Fix add_mirror_images not to dereference uninitialized log_lv upon failure.