summaryrefslogtreecommitdiff
path: root/libdm/.exported_symbols.DM_1_02_138
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-12-11 12:53:04 +0000
committerBryn M. Reeves <bmr@redhat.com>2017-01-25 16:15:21 +0000
commite0d19feb85ce8e143c7f107d7bf1c668d667a57c (patch)
treec1bdf92e49755754abeea139afd0fcaa553fbe6e /libdm/.exported_symbols.DM_1_02_138
parent1c00bb5da3a53152c5f9e0c9d3382afdec1b2455 (diff)
downloadlvm2-e0d19feb85ce8e143c7f107d7bf1c668d667a57c.tar.gz
libdm: add dm_stats_update_regions_from_fd()
Add a call to update the regions corresponding to a file mapped group of regions. The regions to be updated must be grouped, to allow us to correctly identify extents that have been deallocated since the map was created. Tables are built of the file extents, and the extents currently mapped to dmstats regions: if a region no longer has a matching file extent, it is deleted, and new regions are created for any file extents without a matching region. The FIEMAP call returns extents that are currently in-memory (or journaled) and awaiting allocation in the file system. These have the FIEMAP_EXTENT_UNKNOWN | FIEMAP_EXTENT_DELALLOC flag bits set in the fe_flags field - these extents are skipped until they have a known disk location. Since it is possile for the 0th extent of the file to have been deallocated this must also handle the possible deletion and re-creation of the group leader: if no other region allocation is taking place the group identifier will not change.
Diffstat (limited to 'libdm/.exported_symbols.DM_1_02_138')
-rw-r--r--libdm/.exported_symbols.DM_1_02_1381
1 files changed, 1 insertions, 0 deletions
diff --git a/libdm/.exported_symbols.DM_1_02_138 b/libdm/.exported_symbols.DM_1_02_138
index 08f936fe3..3ebc59dca 100644
--- a/libdm/.exported_symbols.DM_1_02_138
+++ b/libdm/.exported_symbols.DM_1_02_138
@@ -1,4 +1,5 @@
dm_bit_get_last
dm_bit_get_prev
+dm_stats_update_regions_from_fd
dm_bitset_parse_list
dm_stats_bind_from_fd