/aosp14/frameworks/base/tests/ApkVerityTest/block_device_writer/ |
H A D | block_device_writer.cpp | 103 const int map_size = sizeof(struct fiemap) + sizeof(struct fiemap_extent); in get_physical_offset() 105 struct fiemap* fiemap = reinterpret_cast<struct fiemap*>(&fiemap_buffer); in get_physical_offset() local 107 fiemap->fm_flags = FIEMAP_FLAG_SYNC; in get_physical_offset() 108 fiemap->fm_start = byte_offset; in get_physical_offset() 109 fiemap->fm_length = 1; in get_physical_offset() 110 fiemap->fm_extent_count = 1; in get_physical_offset() 112 int ret = ioctl(fd.get(), FS_IOC_FIEMAP, fiemap); in get_physical_offset() 118 if (fiemap->fm_mapped_extents != 1) { in get_physical_offset() 120 fiemap->fm_mapped_extents); in get_physical_offset() 124 struct fiemap_extent* extent = &fiemap->fm_extents[0]; in get_physical_offset()
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A 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()
|
H A D | utility.h | 72 AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name) in AutoUnmapImage() 78 android::fiemap::IImageManager* images_ = nullptr;
|
H A D | return.cpp | 19 using android::fiemap::FiemapStatus;
|
H A D | utility.cpp | 34 using android::fiemap::FiemapStatus;
|
/aosp14/system/core/fs_mgr/libfiemap/ |
H A 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() 530 fiemap_extent* prev = &fiemap->fm_extents[0]; in FiemapToExtents() 534 fiemap_extent* next = &fiemap->fm_extents[i]; in FiemapToExtents() 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() 577 fiemap->fm_flags = FIEMAP_FLAG_SYNC; in ReadFiemap() 578 fiemap->fm_extent_count = kMaxExtents; in ReadFiemap() [all …]
|
H A D | utility.h | 26 namespace fiemap { 35 std::string GetDevicePathForFile(android::fiemap::SplitFiemap* file);
|
H A D | metadata.h | 27 namespace fiemap { 39 android::fs_mgr::Partition* partition, android::fiemap::SplitFiemap* file,
|
H A 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()
|
H A D | passthrough.cpp | 20 namespace fiemap { namespace
|
H A D | fiemap_status.cpp | 19 namespace android::fiemap { namespace
|
H A D | image_test.cpp | 46 using android::fiemap::ImageManager; 47 using android::fiemap::IsSubdir;
|
H A D | fiemap_writer_test.cpp | 48 namespace fiemap { namespace 52 using namespace android::fiemap; 570 using namespace android::fiemap;
|
H A D | utility.cpp | 33 namespace fiemap { namespace
|
H A D | metadata.cpp | 30 namespace fiemap { namespace
|
H A D | split_fiemap_writer.cpp | 38 namespace fiemap { namespace
|
H A D | binder.cpp | 27 namespace fiemap { namespace
|
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/ |
H A D | fiemap_status.h | 24 namespace android::fiemap {
|
H A D | fiemap_writer.h | 33 namespace fiemap {
|
H A D | split_fiemap_writer.h | 32 namespace fiemap {
|
H A D | image_manager.h | 33 namespace fiemap {
|
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
H A D | mock_device_info.h | 35 MOCK_METHOD(std::unique_ptr<android::fiemap::IImageManager>, OpenImageManager, (),
|
H A D | return.h | 27 using FiemapStatus = android::fiemap::FiemapStatus;
|
H A D | snapshot.h | 55 namespace fiemap { 94 using IImageManager = android::fiemap::IImageManager; 312 using FiemapStatus = android::fiemap::FiemapStatus; 453 using IImageManager = android::fiemap::IImageManager;
|
/aosp14/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
H A D | test_helpers.h | 194 void DeleteBackingImage(android::fiemap::IImageManager* manager, const std::string& name);
|