From dc5d903a0ec50d137393d42ec2e326bdf9c9824d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 May 2018 10:54:01 -0400 Subject: extent-map: fix for large files --- lib/extent-map.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-2-g168b