diff options
author | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-19 10:54:01 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@beefcake.parabola.nu> | 2018-05-19 10:54:01 -0400 |
commit | dc5d903a0ec50d137393d42ec2e326bdf9c9824d (patch) | |
tree | a95097d70d63cb523cdaa9e19c56ce89be2e33ca | |
parent | 383e075a62ca4e4250c1d652913c4de375a03bc5 (diff) |
extent-map: fix for large files
-rw-r--r-- | lib/extent-map.c | 1 |
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); |