summaryrefslogtreecommitdiff
path: root/lib/extent-map.h
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@beefcake.parabola.nu>2018-05-16 10:30:03 -0400
committerLuke Shumaker <lukeshu@beefcake.parabola.nu>2018-05-16 10:30:03 -0400
commit9891d6597770ed884c989885d04da46db5952f0a (patch)
tree133e1d8989ff26dd94f71602b71bb4d5ef803fc3 /lib/extent-map.h
parent94ee3156b7a22b02f8b21e6db3fcdf7d1ad51d0e (diff)
first pass at cow-extent-map
Diffstat (limited to 'lib/extent-map.h')
-rw-r--r--lib/extent-map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/extent-map.h b/lib/extent-map.h
new file mode 100644
index 0000000..4f873a0
--- /dev/null
+++ b/lib/extent-map.h
@@ -0,0 +1,4 @@
+#include <stdint.h> /* for uint32_t */
+#include <linux/fiemap.h> /* for struct fiemap_extent */
+
+void fiemap(int fd, uint32_t flags, int (*handle_extent)(struct fiemap_extent));