Home
last modified time | relevance | path

Searched refs:fiemap (Results 1 – 25 of 34) sorted by relevance

12

/system/vold/
DFileDeviceUtils.cpp35 std::unique_ptr<struct fiemap> alloc_fiemap(uint32_t extent_count);
67 std::unique_ptr<struct fiemap> PathFiemap(const std::string& path, uint32_t extent_count) { in PathFiemap()
77 auto fiemap = alloc_fiemap(extent_count); in PathFiemap() local
78 if (ioctl(fd.get(), FS_IOC_FIEMAP, fiemap.get()) != 0) { in PathFiemap()
82 auto mapped = fiemap->fm_mapped_extents; in PathFiemap()
88 return fiemap; in PathFiemap()
96 std::unique_ptr<struct fiemap> alloc_fiemap(uint32_t extent_count) { in alloc_fiemap()
97 size_t allocsize = offsetof(struct fiemap, fm_extents[extent_count]); in alloc_fiemap()
98 std::unique_ptr<struct fiemap> res(new (::operator new(allocsize)) struct fiemap); in alloc_fiemap()
Dsecdiscard.cpp48 bool check_fiemap(const struct fiemap& fiemap, const std::string& path);
127 auto fiemap = android::vold::PathFiemap(path, max_extents); in secdiscard_path() local
128 if (!fiemap || !check_fiemap(*fiemap, path)) { in secdiscard_path()
141 for (uint32_t i = 0; i < fiemap->fm_mapped_extents; i++) { in secdiscard_path()
143 range[0] = fiemap->fm_extents[i].fe_physical; in secdiscard_path()
144 range[1] = fiemap->fm_extents[i].fe_length; in secdiscard_path()
158 bool check_fiemap(const struct fiemap& fiemap, const std::string& path) { in check_fiemap() argument
159 auto mapped = fiemap.fm_mapped_extents; in check_fiemap()
160 if (!(fiemap.fm_extents[mapped - 1].fe_flags & FIEMAP_EXTENT_LAST)) { in check_fiemap()
165 auto flags = fiemap.fm_extents[i].fe_flags; in check_fiemap()
DCheckEncryption.cpp95 auto fiemap = PathFiemap(needle, max_extents); in check_file() local
98 for (uint32_t i = 0; i < fiemap->fm_mapped_extents; i++) { in check_file()
99 auto xt = &(fiemap->fm_extents[i]); in check_file()
DFileDeviceUtils.h30 std::unique_ptr<struct fiemap> PathFiemap(const std::string& path, uint32_t extent_count);
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp44 namespace fiemap { namespace
502 struct fiemap fiemap = {}; in CountFiemapExtents() local
503 fiemap.fm_start = 0; in CountFiemapExtents()
504 fiemap.fm_length = UINT64_MAX; in CountFiemapExtents()
505 fiemap.fm_flags = FIEMAP_FLAG_SYNC; in CountFiemapExtents()
506 fiemap.fm_extent_count = 0; in CountFiemapExtents()
508 if (ioctl(file_fd, FS_IOC_FIEMAP, &fiemap)) { in CountFiemapExtents()
514 *num_extents = fiemap.fm_mapped_extents; in CountFiemapExtents()
532 static bool FiemapToExtents(struct fiemap* fiemap, std::vector<struct fiemap_extent>* extents, in FiemapToExtents() argument
536 const struct fiemap_extent* last_extent = &fiemap->fm_extents[num_extents - 1]; in FiemapToExtents()
[all …]
Dutility.h26 namespace fiemap {
35 std::string GetDevicePathForFile(android::fiemap::SplitFiemap* file);
Dpassthrough.cpp20 namespace fiemap { namespace
Dfiemap_status.cpp19 namespace android::fiemap { namespace
Dmetadata.h26 namespace fiemap {
Dimage_manager.cpp35 namespace fiemap { namespace
646 auto fiemap = SplitFiemap::Open(image_path); in Validate() local
647 if (!fiemap || !fiemap->HasPinnedExtents()) { in Validate()
Dutility.cpp33 namespace fiemap { namespace
Dfiemap_writer_test.cpp43 namespace fiemap { namespace
47 using namespace android::fiemap;
503 using namespace android::fiemap;
Dimage_test.cpp40 using android::fiemap::ImageManager;
Dmetadata.cpp30 namespace fiemap { namespace
/system/gsid/
Dpartition_installer.h36 using ImageManager = android::fiemap::ImageManager;
37 using MappedDevice = android::fiemap::MappedDevice;
/system/core/fs_mgr/libsnapshot/
Dutility.h73 AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name) in AutoUnmapImage()
80 android::fiemap::IImageManager* images_ = nullptr;
Dreturn.cpp19 using android::fiemap::FiemapStatus;
Dutility.cpp29 using android::fiemap::FiemapStatus;
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_status.h24 namespace android::fiemap {
Dfiemap_writer.h33 namespace fiemap {
Dsplit_fiemap_writer.h32 namespace fiemap {
Dimage_manager.h32 namespace fiemap {
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dreturn.h27 using FiemapStatus = android::fiemap::FiemapStatus;
Dsnapshot.h48 namespace fiemap {
93 using FiemapStatus = android::fiemap::FiemapStatus;
293 using IImageManager = android::fiemap::IImageManager;
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h140 void DeleteBackingImage(android::fiemap::IImageManager* manager, const std::string& name);

12