/system/vold/ |
D | FileDeviceUtils.cpp | 35 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()
|
D | secdiscard.cpp | 48 bool check_fiemap(const struct fiemap& fiemap, const std::string& path); 168 auto fiemap = android::vold::PathFiemap(path, max_extents); in secdiscard_path() local 169 if (!fiemap || !check_fiemap(*fiemap, path)) { in secdiscard_path() 182 for (uint32_t i = 0; i < fiemap->fm_mapped_extents; i++) { in secdiscard_path() 184 range[0] = fiemap->fm_extents[i].fe_physical; in secdiscard_path() 185 range[1] = fiemap->fm_extents[i].fe_length; in secdiscard_path() 199 bool check_fiemap(const struct fiemap& fiemap, const std::string& path) { in check_fiemap() argument 200 auto mapped = fiemap.fm_mapped_extents; in check_fiemap() 201 if (!(fiemap.fm_extents[mapped - 1].fe_flags & FIEMAP_EXTENT_LAST)) { in check_fiemap() 206 auto flags = fiemap.fm_extents[i].fe_flags; in check_fiemap()
|
D | FileDeviceUtils.h | 30 std::unique_ptr<struct fiemap> PathFiemap(const std::string& path, uint32_t extent_count);
|
/system/core/fs_mgr/libsnapshot/ |
D | device_info.cpp | 125 std::unique_ptr<android::fiemap::IImageManager> DeviceInfo::OpenImageManager() const { in OpenImageManager() 129 std::unique_ptr<android::fiemap::IImageManager> ISnapshotManager::IDeviceInfo::OpenImageManager( in OpenImageManager() 132 android::fiemap::ImageManager::DeviceInfo device_info = { in OpenImageManager() 135 return android::fiemap::ImageManager::Open(gsid_dir, device_info); in OpenImageManager() 138 return android::fiemap::IImageManager::Open(gsid_dir, 15000ms); in OpenImageManager()
|
D | utility.h | 72 AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name) in AutoUnmapImage() 78 android::fiemap::IImageManager* images_ = nullptr;
|
D | return.cpp | 19 using android::fiemap::FiemapStatus;
|
D | utility.cpp | 34 using android::fiemap::FiemapStatus;
|
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 44 namespace fiemap { namespace 514 static bool FiemapToExtents(struct fiemap* fiemap, std::vector<struct fiemap_extent>* extents, in FiemapToExtents() argument 516 uint32_t num_extents = fiemap->fm_mapped_extents; in FiemapToExtents() 521 const struct fiemap_extent* last_extent = &fiemap->fm_extents[num_extents - 1]; in FiemapToExtents() 530 fiemap_extent* prev = &fiemap->fm_extents[0]; in FiemapToExtents() 534 fiemap_extent* next = &fiemap->fm_extents[i]; in FiemapToExtents() 566 uint64_t fiemap_size = sizeof(struct fiemap) + kMaxExtents * sizeof(struct fiemap_extent); in ReadFiemap() 573 struct fiemap* fiemap = reinterpret_cast<struct fiemap*>(buffer.get()); in ReadFiemap() local 574 fiemap->fm_start = 0; in ReadFiemap() 575 fiemap->fm_length = UINT64_MAX; in ReadFiemap() [all …]
|
D | utility.h | 26 namespace fiemap { 35 std::string GetDevicePathForFile(android::fiemap::SplitFiemap* file);
|
D | metadata.h | 27 namespace fiemap { 39 android::fs_mgr::Partition* partition, android::fiemap::SplitFiemap* file,
|
D | passthrough.cpp | 20 namespace fiemap { namespace
|
D | fiemap_status.cpp | 19 namespace android::fiemap { namespace
|
D | image_manager.cpp | 37 namespace fiemap { namespace 668 auto fiemap = SplitFiemap::Open(image_path); in Validate() local 669 if (fiemap == nullptr) { in Validate() 674 if (!fiemap->HasPinnedExtents()) { in Validate() 813 auto fiemap = SplitFiemap::Open(image_path); in ValidateImageMaps() local 814 if (fiemap == nullptr) { in ValidateImageMaps() 818 if (!fiemap->HasPinnedExtents()) { in ValidateImageMaps() 837 if (!FillPartitionExtents(builder.get(), new_p, fiemap.get(), partition_size)) { in ValidateImageMaps()
|
D | image_test.cpp | 46 using android::fiemap::ImageManager; 47 using android::fiemap::IsSubdir;
|
D | utility.cpp | 33 namespace fiemap { namespace
|
D | fiemap_writer_test.cpp | 48 namespace fiemap { namespace 52 using namespace android::fiemap; 570 using namespace android::fiemap;
|
D | metadata.cpp | 30 namespace fiemap { namespace
|
/system/gsid/ |
D | partition_installer.h | 36 using ImageManager = android::fiemap::ImageManager; 37 using MappedDevice = android::fiemap::MappedDevice;
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | fiemap_status.h | 24 namespace android::fiemap {
|
D | fiemap_writer.h | 33 namespace fiemap {
|
D | split_fiemap_writer.h | 32 namespace fiemap {
|
D | image_manager.h | 33 namespace fiemap {
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | mock_device_info.h | 35 MOCK_METHOD(std::unique_ptr<android::fiemap::IImageManager>, OpenImageManager, (),
|
D | return.h | 27 using FiemapStatus = android::fiemap::FiemapStatus;
|
D | snapshot.h | 55 namespace fiemap { 94 using IImageManager = android::fiemap::IImageManager; 312 using FiemapStatus = android::fiemap::FiemapStatus; 453 using IImageManager = android::fiemap::IImageManager;
|