summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extent-map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/extent-map.c b/lib/extent-map.c
index d841077..67f5a78 100644
--- a/lib/extent-map.c
+++ b/lib/extent-map.c
@@ -32,6 +32,7 @@ int fiemap(int fd, uint32_t flags, int (*handle_extent)(struct fiemap_extent)) {
}
for (size_t i = 0; i < fm->fm_mapped_extents; i++) {
+ bytes_mapped += fm->fm_extents[i].fe_length;
int r = handle_extent(fm->fm_extents[i]);
if (r) {
free(fm);