Searched refs:fiemap (Results 1 - 3 of 3) sorted by relevance

/system/vold/
H A DFileDeviceUtils.h21 #include <linux/fiemap.h>
30 std::unique_ptr<struct fiemap> PathFiemap(const std::string &path, uint32_t extent_count);
H A DFileDeviceUtils.cpp26 #include <linux/fiemap.h>
35 std::unique_ptr<struct fiemap> alloc_fiemap(uint32_t extent_count);
71 std::unique_ptr<struct fiemap> PathFiemap(const std::string &path, uint32_t extent_count)
83 auto fiemap = alloc_fiemap(extent_count); local
84 if (ioctl(fd.get(), FS_IOC_FIEMAP, fiemap.get()) != 0) {
88 auto mapped = fiemap->fm_mapped_extents;
94 return fiemap;
102 std::unique_ptr<struct fiemap> alloc_fiemap(uint32_t extent_count)
104 size_t allocsize = offsetof(struct fiemap, fm_extents[extent_count]);
105 std::unique_ptr<struct fiemap> re
[all...]
H A Dsecdiscard.cpp28 #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); local
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;
128 bool check_fiemap(const struct fiemap argument
[all...]

Completed in 292 milliseconds