Searched refs:block_map_data (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/tests/unit/ |
D | fuse_provider_test.cpp | 42 auto block_map_data = FuseBlockDataProvider::CreateFromBlockMap(temp_file.path, 4096); in TEST() local 44 ASSERT_TRUE(block_map_data); in TEST() 45 ASSERT_EQ(10000, block_map_data->file_size()); in TEST() 46 ASSERT_EQ(4096, block_map_data->fuse_block_size()); in TEST() 48 static_cast<FuseBlockDataProvider*>(block_map_data.get())->ranges()); in TEST() 68 auto block_map_data = FuseBlockDataProvider::CreateFromBlockMap(temp_file.path, 4096); in TEST() local 71 ASSERT_TRUE(block_map_data->ReadBlockAlignedData(result.data(), 2000, 1)); in TEST() 75 ASSERT_TRUE(block_map_data->ReadBlockAlignedData(result.data(), 20000, 0)); in TEST() 94 auto block_map_data = FuseBlockDataProvider::CreateFromBlockMap(block_map.path, 16384); in TEST() local 95 ASSERT_TRUE(block_map_data); in TEST() [all …]
|
D | sysutil_test.cpp | 41 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST() local 42 ASSERT_EQ("/dev/abc", block_map_data.path()); in TEST() 43 ASSERT_EQ(49652, block_map_data.file_size()); in TEST() 44 ASSERT_EQ(4096, block_map_data.block_size()); in TEST() 50 block_map_data.block_ranges()); in TEST() 76 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST() local 77 ASSERT_EQ("/dev/abc", block_map_data.path()); in TEST() 78 ASSERT_EQ(42949672950, block_map_data.file_size()); in TEST() 79 ASSERT_EQ(4294967295, block_map_data.block_size()); in TEST()
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 127 auto block_map_data = BlockMapData::ParseBlockMapFile(filename); in MapBlockFile() local 128 if (!block_map_data) { in MapBlockFile() 132 if (block_map_data.file_size() > std::numeric_limits<size_t>::max()) { in MapBlockFile() 133 LOG(ERROR) << "File size is too large for mmap " << block_map_data.file_size(); in MapBlockFile() 138 uint32_t blksize = block_map_data.block_size(); in MapBlockFile() 139 uint64_t blocks = ((block_map_data.file_size() - 1) / blksize) + 1; in MapBlockFile() 146 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map_data.path().c_str(), O_RDONLY))); in MapBlockFile() 148 PLOG(ERROR) << "failed to open block device " << block_map_data.path(); in MapBlockFile() 157 for (const auto& [start, end] : block_map_data.block_ranges()) { in MapBlockFile() 178 length = block_map_data.file_size(); in MapBlockFile() [all …]
|