Home | History | Annotate | Download | only in vold

Lines Matching defs:fiemap

26 #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);
84 if (ioctl(fd.get(), FS_IOC_FIEMAP, fiemap.get()) != 0) {
85 PLOG(ERROR) << "Unable to FIEMAP " << path;
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> res(new (::operator new (allocsize)) struct fiemap);