Home | History | Annotate | Download | only in vold

Lines Matching refs:fiemap

28 #include <linux/fiemap.h>
48 bool check_fiemap(const struct fiemap &fiemap, const std::string &path);
100 auto fiemap = android::vold::PathFiemap(path, max_extents);
101 if (!fiemap || !check_fiemap(*fiemap, path)) {
114 for (uint32_t i = 0; i < fiemap->fm_mapped_extents; i++) {
116 range[0] = fiemap->fm_extents[i].fe_physical;
117 range[1] = fiemap->fm_extents[i].fe_length;
127 // Ensure that the FIEMAP covers the file and is OK to discard
128 bool check_fiemap(const struct fiemap &fiemap, const std::string &path) {
129 auto mapped = fiemap.fm_mapped_extents;
130 if (!(fiemap.fm_extents[mapped - 1].fe_flags & FIEMAP_EXTENT_LAST)) {
135 auto flags = fiemap.fm_extents[i].fe_flags;