Searched refs:lv (Results 1 - 25 of 182) sorted by relevance

12345678

/netbsd-current/external/gpl2/lvm2/dist/lib/activate/
H A Dfs.h28 int fs_add_lv(const struct logical_volume *lv, const char *dev);
29 int fs_del_lv(const struct logical_volume *lv);
31 int fs_rename_lv(struct logical_volume *lv, const char *dev,
H A Dactivate.c69 if (lv_is_origin(seg->lv))
70 dm_list_iterate(snh, &seg->lv->snapshot_segs)
78 if (lv_is_cow(seg->lv)) {
79 snap_seg = find_cow(seg->lv);
104 int list_lv_modules(struct dm_pool *mem, const struct logical_volume *lv, argument
109 dm_list_iterate_items(seg, &lv->segments)
151 int lv_info(struct cmd_context *cmd, const struct logical_volume *lv, struct lvinfo *info, argument
161 int lv_snapshot_percent(const struct logical_volume *lv, float *percent, argument
166 int lv_mirror_percent(struct cmd_context *cmd, struct logical_volume *lv, argument
218 int lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv) argument
262 _passes_activation_filter(struct cmd_context *cmd, struct logical_volume *lv) argument
445 _lv_info(struct cmd_context *cmd, const struct logical_volume *lv, int with_mknodes, struct lvinfo *info, int with_open_count, int with_read_ahead, unsigned by_uuid_only) argument
482 lv_info(struct cmd_context *cmd, const struct logical_volume *lv, struct lvinfo *info, int with_open_count, int with_read_ahead) argument
491 struct logical_volume *lv; local
502 lv_snapshot_percent(const struct logical_volume *lv, float *percent, percent_range_t *percent_range) argument
523 lv_mirror_percent(struct cmd_context *cmd, struct logical_volume *lv, int wait, float *percent, percent_range_t *percent_range, uint32_t *event_nr) argument
559 _lv_active(struct cmd_context *cmd, struct logical_volume *lv, unsigned by_uuid_only) argument
572 _lv_open_count(struct cmd_context *cmd, struct logical_volume *lv) argument
584 _lv_activate_lv(struct logical_volume *lv) argument
599 _lv_preload(struct logical_volume *lv, int *flush_required) argument
614 _lv_deactivate(struct logical_volume *lv) argument
629 _lv_suspend_lv(struct logical_volume *lv, int lockfs, int flush_required) argument
697 lv_is_active(struct logical_volume *lv) argument
729 monitor_dev_for_events(struct cmd_context *cmd, struct logical_volume *lv, int monitor) argument
856 struct logical_volume *lv = NULL, *lv_pre = NULL; local
933 struct logical_volume *lv; local
985 _lv_has_open_snapshots(struct logical_volume *lv) argument
1010 struct logical_volume *lv; local
1067 struct logical_volume *lv; local
1095 struct logical_volume *lv; local
1176 lv_mknodes(struct cmd_context *cmd, const struct logical_volume *lv) argument
[all...]
H A Ddev_manager.h46 const struct logical_volume *lv,
50 const struct logical_volume *lv,
54 struct logical_volume *lv, int wait,
57 int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv,
59 int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv);
60 int dev_manager_preload(struct dev_manager *dm, struct logical_volume *lv,
62 int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv);
64 int dev_manager_lv_mknodes(const struct logical_volume *lv);
65 int dev_manager_lv_rmnodes(const struct logical_volume *lv);
/netbsd-current/external/gpl2/lvm2/dist/tools/
H A Dlvchange.c21 struct logical_volume *lv)
29 if ((lv_access & LVM_WRITE) && (lv->status & LVM_WRITE)) {
31 lv->name);
35 if (!(lv_access & LVM_WRITE) && !(lv->status & LVM_WRITE)) {
37 lv->name);
41 if ((lv->status & MIRRORED) && (vg_is_clustered(lv->vg)) &&
42 lv_info(cmd, lv, &info, 0, 0) && info.exists) {
44 "while active.", lv->name);
49 lv
20 lvchange_permission(struct cmd_context *cmd, struct logical_volume *lv) argument
85 lvchange_monitoring(struct cmd_context *cmd, struct logical_volume *lv) argument
106 lvchange_availability(struct cmd_context *cmd, struct logical_volume *lv) argument
146 lvchange_refresh(struct cmd_context *cmd, struct logical_volume *lv) argument
152 lvchange_resync(struct cmd_context *cmd, struct logical_volume *lv) argument
306 lvchange_alloc(struct cmd_context *cmd, struct logical_volume *lv) argument
339 lvchange_readahead(struct cmd_context *cmd, struct logical_volume *lv) argument
406 lvchange_persistent(struct cmd_context *cmd, struct logical_volume *lv) argument
476 lvchange_tag(struct cmd_context *cmd, struct logical_volume *lv, int arg) argument
517 lvchange_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle __attribute((unused))) argument
[all...]
H A Dlvscan.c20 static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv, argument
33 if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
36 inkernel = lv_info(cmd, lv, &info, 1, 0) && info.exists;
37 if (lv_is_origin(lv)) {
38 dm_list_iterate_items_gen(snap_seg, &lv->snapshot_segs,
48 } else if (lv_is_cow(lv)) {
50 (snap_active = lv_snapshot_percent(lv, &snap_percent,
62 if (lv_is_origin(lv))
64 else if (lv_is_cow(lv))
70 cmd->dev_dir, lv
[all...]
H A Dvgmknodes.c20 static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv, argument
23 if (arg_count(cmd, refresh_ARG) && lv_is_visible(lv))
24 if (!lv_refresh(cmd, lv)) {
29 if (!lv_mknodes(cmd, lv)) {
H A Dlvremove.c20 static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, argument
28 if (lv_is_cow(lv) && lv_is_virtual_origin(origin = origin_from_cow(lv)))
29 lv = origin;
31 if (!lv_remove_with_dependencies(cmd, lv, arg_count(cmd, force_ARG))) {
H A Dlvconvert.c253 struct logical_volume *lv = find_lv(vg, name); local
255 if (!lv || (uuid && strcmp(uuid, (char *)&lv->lvid)))
258 return lv;
263 struct logical_volume *lv __attribute((unused)),
273 struct logical_volume *lv,
278 if (!collapse_mirrored_lv(lv)) {
283 lv->status &= ~CONVERTING;
285 log_very_verbose("Updating logical volume \"%s\" on disk(s)", lv->name);
290 if (!suspend_lv(cmd, lv)) {
271 _finish_lvconvert_mirror(struct cmd_context *cmd, struct volume_group *vg, struct logical_volume *lv, struct dm_list *lvs_changed __attribute((unused))) argument
323 lvconvert_poll(struct cmd_context *cmd, struct logical_volume *lv, unsigned background) argument
343 _insert_lvconvert_layer(struct cmd_context *cmd, struct logical_volume *lv) argument
400 _failed_mirrors_count(struct logical_volume *lv) argument
447 _original_lv(struct logical_volume *lv) argument
500 _using_corelog(struct logical_volume *lv) argument
505 _lv_update_log_type(struct cmd_context *cmd, struct lvconvert_params *lp, struct logical_volume *lv, int corelog) argument
527 _lvconvert_mirrors(struct cmd_context *cmd, struct logical_volume *lv, struct lvconvert_params *lp) argument
828 lvconvert_snapshot(struct cmd_context *cmd, struct logical_volume *lv, struct lvconvert_params *lp) argument
898 lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle) argument
[all...]
H A Dlvdisplay.c20 static int _lvdisplay_single(struct cmd_context *cmd, struct logical_volume *lv, argument
23 if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
27 lvdisplay_colons(lv);
29 lvdisplay_full(cmd, lv, handle);
31 lvdisplay_segments(lv);
/netbsd-current/external/gpl2/lvm2/dist/test/
H A Dt-snapshots-of-mirrors.sh6 lvcreate -m 1 -L 10M -n lv $vg
7 lvcreate -s $vg/lv -L 10M -n snap
10 lvconvert -m0 $vg/lv
13 lvconvert -m2 $vg/lv
16 lvconvert -m1 $vg/lv
19 not lvconvert -m2 $vg/lv
22 lvconvert --mirrorlog core $vg/lv
25 not lvconvert --mirrorlog redundant $vg/lv
29 # not lvconvert --mirrorlog core $vg/lv
32 lvconvert --mirrorlog disk $vg/lv
[all...]
H A Dt-read-ahead.sh22 lvs --units s --nosuffix --noheadings -o $1 "$vg"/"$lv"
35 lvcreate -n "$lv" -l 100%FREE -i5 -I256 "$vg"
38 lvdisplay "$vg"/"$lv"
39 lvchange -r auto "$vg"/"$lv" 2>&1 | grep auto
42 lvchange -r 640 "$vg/$lv"
48 lvcreate -n $lv -L4m $vg $dev1
49 test $(blockdev --getra $G_dev_/$vg/$lv) -eq 768
53 lvcreate -n $lv -l 50%FREE $vg
54 lvchange -an $vg/$lv
55 check_lv_field_ $vg/$lv lv_read_ahea
[all...]
H A Dt-lvextend-percent-extents.sh18 lvcreate -L 64m -n $lv $vg
21 not lvextend -l 10 -L 64m $vg/$lv 2>err
25 not lvextend -l 10 -L 64m $vg/$lv $dev1 2>err
29 lvextend $vg/$lv $dev1 >out
30 grep "^ Logical volume $lv successfully resized\$" out
33 lvremove -f $vg/$lv
37 lvcreate -l $vgsize -n $lv $vg
38 yes | lvreduce -l $(( $vgsize / 2 )) $vg/$lv
39 lvextend -l $vgsize $vg/$lv
42 lvremove -f $vg/$lv
[all...]
H A Dt-lvresize-usage.sh15 lvcreate -L 10M -n lv -i2 $vg
16 lvresize -l +4 $vg/lv
19 lvcreate -L 64M -n $lv -i2 $vg
20 not lvresize -v -l +4 xxx/$lv
H A Dt-pv-range-overflow.sh18 lvcreate -L4 -n"$lv" $vg
31 not pvmove -v -n$lv $dev1:4294967296 $dev2
/netbsd-current/external/gpl2/lvm2/dist/liblvm/
H A Dlvm_lv.c29 uint64_t lvm_lv_get_size(const lv_t lv) argument
31 return lv_size(lv);
34 char *lvm_lv_get_uuid(const lv_t lv) argument
38 if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid))) {
45 char *lvm_lv_get_name(const lv_t lv) argument
50 strncpy(name, (const char *)lv->name, NAME_LEN);
55 uint64_t lvm_lv_is_active(const lv_t lv) argument
58 if (lv_info(lv->vg->cmd, lv, &info, 1, 0) &&
64 uint64_t lvm_lv_is_suspended(const lv_t lv) argument
132 lvm_vg_remove_lv(lv_t lv) argument
143 lvm_lv_activate(lv_t lv) argument
178 lvm_lv_deactivate(lv_t lv) argument
191 lvm_lv_resize(const lv_t lv, uint64_t new_size) argument
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/metadata/
H A Dsnapshot_manip.c23 int lv_is_origin(const struct logical_volume *lv) argument
25 return lv->origin_count ? 1 : 0;
28 int lv_is_cow(const struct logical_volume *lv) argument
30 return lv->snapshot ? 1 : 0;
33 int lv_is_visible(const struct logical_volume *lv) argument
35 if (lv->status & SNAPSHOT)
38 if (lv_is_cow(lv)) {
39 if (lv_is_virtual_origin(origin_from_cow(lv)))
42 return lv_is_visible(origin_from_cow(lv));
45 return lv
48 lv_is_virtual_origin(const struct logical_volume *lv) argument
55 find_cow(const struct logical_volume *lv) argument
61 origin_from_cow(const struct logical_volume *lv) argument
[all...]
H A Dmerge.c40 int lv_merge_segments(struct logical_volume *lv) argument
45 if (lv->status & LOCKED || lv->status & PVMOVE)
48 dm_list_iterate_safe(segh, t, &lv->segments) {
63 int check_lv_segments(struct logical_volume *lv, int complete_vg) argument
72 dm_list_iterate_items(seg, &lv->segments) {
77 lv->name, seg_count, le, seg->le);
87 lv->name, seg_count, seg->area_len);
95 lv->name, seg_count);
102 lv
258 _lv_split_segment(struct logical_volume *lv, struct lv_segment *seg, uint32_t le) argument
347 lv_split_segment(struct logical_volume *lv, uint32_t le) argument
[all...]
H A Dmirror.c44 * Returns true if the lv is temporary mirror layer for resync
46 int is_temporary_mirror_layer(const struct logical_volume *lv) argument
48 if (lv->status & MIRROR_IMAGE
49 && lv->status & MIRRORED
50 && !(lv->status & LOCKED))
60 struct logical_volume *find_temporary_mirror(const struct logical_volume *lv) argument
64 if (!(lv->status & MIRRORED))
67 seg = first_seg(lv);
80 uint32_t lv_mirror_count(const struct logical_volume *lv) argument
85 if (!(lv
193 _write_log_header(struct cmd_context *cmd, struct logical_volume *lv) argument
353 _delete_lv(struct logical_volume *mirror_lv, struct logical_volume *lv) argument
385 _merge_mirror_images(struct logical_volume *lv, const struct dm_list *mimages) argument
489 _remove_mirror_images(struct logical_volume *lv, uint32_t num_removed, struct dm_list *removable_pvs, unsigned remove_log, unsigned collapse, uint32_t *removed) argument
674 remove_mirror_images(struct logical_volume *lv, uint32_t num_mirrors, struct dm_list *removable_pvs, unsigned remove_log) argument
718 _mirrored_lv_in_sync(struct logical_volume *lv) argument
744 collapse_mirrored_lv(struct logical_volume *lv) argument
829 struct logical_volume *lv = mirrored_seg->lv; local
926 _create_mimage_lvs(struct alloc_handle *ah, uint32_t num_mirrors, struct logical_volume *lv, struct logical_volume **img_lvs) argument
977 remove_mirrors_from_segments(struct logical_volume *lv, uint32_t new_mirrors, uint32_t status_mask) argument
1032 get_pvmove_pvname_from_lv(struct logical_volume *lv) argument
1053 struct logical_volume *lv; local
1090 lvs_using_lv(struct cmd_context *cmd, struct volume_group *vg, struct logical_volume *lv) argument
1184 add_mirrors_to_segments(struct cmd_context *cmd, struct logical_volume *lv, uint32_t mirrors, uint32_t region_size, struct dm_list *allocatable_pvs, alloc_policy_t alloc) argument
1225 remove_mirror_log(struct cmd_context *cmd, struct logical_volume *lv, struct dm_list *removable_pvs) argument
1273 _create_mirror_log(struct logical_volume *lv, struct alloc_handle *ah, alloc_policy_t alloc, const char *lv_name, const char *suffix) argument
1305 _set_up_mirror_log(struct cmd_context *cmd, struct alloc_handle *ah, struct logical_volume *lv, uint32_t log_count, uint32_t region_size __attribute((unused)), alloc_policy_t alloc, int in_sync) argument
1374 add_mirror_log(struct cmd_context *cmd, struct logical_volume *lv, uint32_t log_count, uint32_t region_size, struct dm_list *allocatable_pvs, alloc_policy_t alloc) argument
1457 add_mirror_images(struct cmd_context *cmd, struct logical_volume *lv, uint32_t mirrors, uint32_t stripes, uint32_t region_size, struct dm_list *allocatable_pvs, alloc_policy_t alloc, uint32_t log_count) argument
1559 lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv, uint32_t mirrors, uint32_t stripes, uint32_t region_size, uint32_t log_count, struct dm_list *pvs, alloc_policy_t alloc, uint32_t flags) argument
1611 lv_remove_mirrors(struct cmd_context *cmd __attribute((unused)), struct logical_volume *lv, uint32_t mirrors, uint32_t log_count, struct dm_list *pvs, uint32_t status_mask) argument
[all...]
H A Dlv_manip.c37 int add_seg_to_segs_using_this_lv(struct logical_volume *lv, argument
42 dm_list_iterate_items(sl, &lv->segs_using_this_lv) {
50 seg->lv->name, seg->le, lv->name);
52 if (!(sl = dm_pool_zalloc(lv->vg->cmd->mem, sizeof(*sl)))) {
59 dm_list_add(&lv->segs_using_this_lv, &sl->list);
64 int remove_seg_from_segs_using_this_lv(struct logical_volume *lv, argument
69 dm_list_iterate_items(sl, &lv->segs_using_this_lv) {
76 "of %s", seg->lv->name, seg->le,
77 lv
93 get_only_segment_using_this_lv(struct logical_volume *lv) argument
142 find_free_lvnum(struct logical_volume *lv) argument
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
217 alloc_snapshot_seg(struct logical_volume *lv, uint32_t status, uint32_t old_le_count) argument
281 struct logical_volume *lv; local
336 set_lv_segment_area_lv(struct lv_segment *seg, uint32_t area_num, struct logical_volume *lv, uint32_t le, uint32_t flags) argument
357 _lv_segment_add_areas(struct logical_volume *lv, struct lv_segment *seg, uint32_t new_area_count) argument
406 _lv_reduce(struct logical_volume *lv, uint32_t extents, int delete) argument
450 lv_empty(struct logical_volume *lv) argument
458 replace_lv_with_error_segment(struct logical_volume *lv) argument
476 lv_reduce(struct logical_volume *lv, uint32_t extents) argument
484 lv_remove(struct logical_volume *lv) 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
786 _for_each_pv(struct cmd_context *cmd, struct logical_volume *lv, uint32_t le, uint32_t len, uint32_t *max_seg_len, uint32_t first_area, uint32_t max_areas, int top_level_area_index, int only_single_area_segments, int (*fn)(struct cmd_context *cmd, struct pv_segment *peg, uint32_t s, void *data), void *data) argument
1189 _allocate(struct alloc_handle *ah, struct volume_group *vg, struct logical_volume *lv, uint32_t new_extents, unsigned can_split, struct dm_list *allocatable_pvs) 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
1441 lv_add_mirror_areas(struct alloc_handle *ah, struct logical_volume *lv, uint32_t le, uint32_t region_size) argument
1497 lv_add_mirror_lvs(struct logical_volume *lv, struct logical_volume **sub_lvs, uint32_t num_extra_areas, uint32_t status, uint32_t region_size) argument
1583 _lv_extend_mirror(struct alloc_handle *ah, struct logical_volume *lv, uint32_t extents, uint32_t first_area) 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
1653 _rename_single_lv(struct logical_volume *lv, char *new_name) argument
1677 _rename_sub_lv(struct cmd_context *cmd, struct logical_volume *lv, const char *lv_name_old, const char *lv_name_new) argument
1719 _rename_cb(struct cmd_context *cmd, struct logical_volume *lv, void *data) argument
1731 _for_each_sub_lv(struct cmd_context *cmd, struct logical_volume *lv, int (*func)(struct cmd_context *cmd, struct logical_volume *lv, void *data), void *data) argument
1766 lv_rename(struct cmd_context *cmd, struct logical_volume *lv, const char *new_name) argument
1869 struct logical_volume *lv; local
1895 struct logical_volume *lv; local
1968 build_parallel_areas_from_lv(struct cmd_context *cmd, struct logical_volume *lv) argument
2009 link_lv_to_vg(struct volume_group *vg, struct logical_volume *lv) argument
2026 unlink_lv_from_vg(struct logical_volume *lv) argument
2038 lv_set_visible(struct logical_volume *lv) argument
2048 lv_set_hidden(struct logical_volume *lv) argument
2058 lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv, const force_t force) argument
2159 lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *lv, const force_t force) argument
2268 remove_layers_for_segments(struct cmd_context *cmd, struct logical_volume *lv, struct logical_volume *layer_lv, uint32_t status_mask, struct dm_list *lvs_changed) argument
2410 remove_layer_from_lv(struct logical_volume *lv, struct logical_volume *layer_lv) argument
2745 set_lv(struct cmd_context *cmd, struct logical_volume *lv, uint64_t sectors, int value) argument
2808 struct logical_volume *lv; local
2845 struct logical_volume *lv, *org = NULL; local
[all...]
H A Dlv_alloc.h22 struct logical_volume *lv,
33 struct lv_segment *alloc_snapshot_seg(struct logical_volume *lv,
39 struct logical_volume *lv, uint32_t le,
48 struct logical_volume *lv,
59 struct logical_volume *lv,
67 struct logical_volume *lv, uint32_t le,
69 int lv_add_mirror_lvs(struct logical_volume *lv,
75 int lv_add_virtual_segment(struct logical_volume *lv, uint32_t status,
81 struct logical_volume *lv);
/netbsd-current/tests/libexec/ld.elf_so/
H A Dt_dl_symver.sh43 for lv in 0 1 2; do
45 -o file:$(datadir)/symver-output-ref-stdout.v$tv-v$lv \
46 -e file:$(datadir)/symver-output-ref-stderr.v$tv-v$lv \
47 -x "LD_LIBRARY_PATH=$(atf_get_srcdir)/h_helper_symver_dso$lv $(atf_get_srcdir)/h_dl_symver_v$tv"
/netbsd-current/external/gpl2/lvm2/dist/include/
H A Dlocking.h122 #define LCK_LV_CLUSTERED(lv) \
123 (vg_is_clustered((lv)->vg) ? LCK_CLUSTER_VG : 0)
125 #define lock_lv_vol(cmd, lv, flags) \
126 lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv))
135 #define resume_lv(cmd, lv) lock_lv_vol(cmd, lv, LCK_LV_RESUME)
136 #define suspend_lv(cmd, lv) lock_lv_vol(cmd, lv, LCK_LV_SUSPEND | LCK_HOLD)
137 #define deactivate_lv(cmd, lv) lock_lv_vo
[all...]
H A Dlv_alloc.h22 struct logical_volume *lv,
33 struct lv_segment *alloc_snapshot_seg(struct logical_volume *lv,
39 struct logical_volume *lv, uint32_t le,
48 struct logical_volume *lv,
59 struct logical_volume *lv,
67 struct logical_volume *lv, uint32_t le,
69 int lv_add_mirror_lvs(struct logical_volume *lv,
75 int lv_add_virtual_segment(struct logical_volume *lv, uint32_t status,
81 struct logical_volume *lv);
/netbsd-current/external/gpl2/lvm2/dist/lib/locking/
H A Dlocking.h122 #define LCK_LV_CLUSTERED(lv) \
123 (vg_is_clustered((lv)->vg) ? LCK_CLUSTER_VG : 0)
125 #define lock_lv_vol(cmd, lv, flags) \
126 lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv))
135 #define resume_lv(cmd, lv) lock_lv_vol(cmd, lv, LCK_LV_RESUME)
136 #define suspend_lv(cmd, lv) lock_lv_vol(cmd, lv, LCK_LV_SUSPEND | LCK_HOLD)
137 #define deactivate_lv(cmd, lv) lock_lv_vo
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/format_pool/
H A Dimport_export.c62 struct logical_volume *lv; local
64 if (!(lv = alloc_lv(mem)))
67 lv->status = 0;
68 lv->alloc = ALLOC_NORMAL;
69 lv->size = 0;
70 lv->name = NULL;
71 lv->le_count = 0;
72 lv->read_ahead = vg->cmd->default_settings.read_ahead;
75 lv->size += pl->pd.pl_blocks;
77 if (lv
179 _add_stripe_seg(struct dm_pool *mem, struct user_subpool *usp, struct logical_volume *lv, uint32_t *le_cur) argument
221 _add_linear_seg(struct dm_pool *mem, struct user_subpool *usp, struct logical_volume *lv, uint32_t *le_cur) argument
262 struct logical_volume *lv; local
[all...]

Completed in 307 milliseconds

12345678