#include /* for uint32_t */ #include /* for struct fiemap_extent */ int fiemap(int fd, uint32_t flags, int (*handle_extent)(struct fiemap_extent));