summaryrefslogtreecommitdiff
path: root/src/fiemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fiemap.h')
-rw-r--r--src/fiemap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fiemap.h b/src/fiemap.h
index 1938c749e..e7243b41b 100644
--- a/src/fiemap.h
+++ b/src/fiemap.h
@@ -51,8 +51,9 @@ struct fiemap
uint32_t fm_reserved;
- /* Array of mapped extents(out). */
- struct fiemap_extent fm_extents[0];
+ /* Array of mapped extents(out).
+ The actual size is given by fm_extent_count. */
+ struct fiemap_extent fm_extents[1];
};
/* The maximum offset can be mapped for a file. */