Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/tests/ApkVerityTest/block_device_writer/
H A Dblock_device_writer.cpp103 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 Ddevice_info.cpp125 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 Dutility.h72 AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name) in AutoUnmapImage()
78 android::fiemap::IImageManager* images_ = nullptr;
H A Dreturn.cpp19 using android::fiemap::FiemapStatus;
H A Dutility.cpp34 using android::fiemap::FiemapStatus;
/aosp14/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer.cpp44 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 Dutility.h26 namespace fiemap {
35 std::string GetDevicePathForFile(android::fiemap::SplitFiemap* file);
H A Dmetadata.h27 namespace fiemap {
39 android::fs_mgr::Partition* partition, android::fiemap::SplitFiemap* file,
H A Dimage_manager.cpp37 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 Dpassthrough.cpp20 namespace fiemap { namespace
H A Dfiemap_status.cpp19 namespace android::fiemap { namespace
H A Dimage_test.cpp46 using android::fiemap::ImageManager;
47 using android::fiemap::IsSubdir;
H A Dfiemap_writer_test.cpp48 namespace fiemap { namespace
52 using namespace android::fiemap;
570 using namespace android::fiemap;
H A Dutility.cpp33 namespace fiemap { namespace
H A Dmetadata.cpp30 namespace fiemap { namespace
H A Dsplit_fiemap_writer.cpp38 namespace fiemap { namespace
H A Dbinder.cpp27 namespace fiemap { namespace
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/
H A Dfiemap_status.h24 namespace android::fiemap {
H A Dfiemap_writer.h33 namespace fiemap {
H A Dsplit_fiemap_writer.h32 namespace fiemap {
H A Dimage_manager.h33 namespace fiemap {
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dmock_device_info.h35 MOCK_METHOD(std::unique_ptr<android::fiemap::IImageManager>, OpenImageManager, (),
H A Dreturn.h27 using FiemapStatus = android::fiemap::FiemapStatus;
H A Dsnapshot.h55 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 Dtest_helpers.h194 void DeleteBackingImage(android::fiemap::IImageManager* manager, const std::string& name);

12