1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00
lvm2/lib/metadata
Jonathan Brassow 6db461e3b0 mirror/raid: Move 'copy_percent' to common code (mirror.c -> lv_manip.c)
The 'copy_percent' function takes the 'extents_copied' field from each
segment in an LV to create the numerator for the ratio that is to
become the copy_percent.  (Otherwise known as the 'sync' percent for
non-pvmove uses, like mirror LVs and RAID LVs.)  This function safely
works on RAID - not just mirrors - so it is better to have it in
lv_manip.c rather than mirror.c.

There's a lot of different functions that do a lot of different things
in lv_manip.c, so I placed the function near a function in lv_manip.c
that it was close to in metadata-exported.h.  Different placement in the
file or a different name for the function may be useful.
2012-10-23 20:33:54 -05:00
..
lv_alloc.h discards: don't discard reconfigured extents 2012-06-27 22:12:01 +01:00
lv_manip.c mirror/raid: Move 'copy_percent' to common code (mirror.c -> lv_manip.c) 2012-10-23 20:33:54 -05:00
lv.c thin: lvm2api return origin property for thin LV 2012-10-12 12:20:55 +02:00
lv.h Thin add new display field for lvs 2012-01-19 15:34:32 +00:00
merge.c cleanup: Use segtype->ops->name() instead of segtype->name where applicable 2012-09-05 11:35:54 -05:00
metadata-exported.h mirror/raid: Move 'copy_percent' to common code (mirror.c -> lv_manip.c) 2012-10-23 20:33:54 -05:00
metadata.c cleanup: move log_error upward in code stack 2012-10-17 15:41:44 +02:00
metadata.h lib/cache/lvmetad: Refactor to use dm_config_tree in requests. 2012-09-26 14:49:15 +02:00
mirror.c mirror/raid: Move 'copy_percent' to common code (mirror.c -> lv_manip.c) 2012-10-23 20:33:54 -05:00
pv_alloc.h discards: split discard from release_pv_segment 2012-06-27 22:11:54 +01:00
pv_manip.c discards: skip when removing LVs on missing PVs 2012-09-19 12:48:56 +01:00
pv_map.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
pv_map.h Track unreserved space for all alloc policies and then permit NORMAL to place 2012-02-01 02:10:45 +00:00
pv.c Move lvmcache data structures behind an API (making the structures private to 2012-02-10 01:28:27 +00:00
pv.h Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
raid_manip.c cleanup: switch log_error to log_warn 2012-10-17 15:41:35 +02:00
replicator_manip.c add thin_manip.c like the other manip files 2011-09-06 19:25:42 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Use a more correct macro for 'seg_is_linear' 2011-10-14 14:21:32 +00:00
snapshot_manip.c Reinstate support for format1 snapshots, but issue deprecated warning. 2011-12-20 00:02:18 +00:00
thin_manip.c cleanup: fix typos 2012-10-10 21:22:11 +02:00
vg.c RAID: Do not allow RAID LVs in a cluster volume group. 2012-10-03 15:52:54 -05:00
vg.h Add free_orphan_vg 2012-02-13 11:03:59 +00:00