Home
last modified time | relevance | path

Searched refs:block_size_ (Results 1 – 25 of 26) sorted by relevance

12

/system/extras/verity/
Dhash_tree_builder.cpp50 : block_size_(block_size), data_size_(0), md_(md) { in HashTreeBuilder()
60 CHECK_LT(hash_size_ * 2, block_size_); in HashTreeBuilder()
101 verity_tree_blocks(input_size, block_size_, hash_size_, levels); in CalculateSize()
106 return verity_blocks * block_size_; in CalculateSize()
114 if (data_size_ % block_size_ != 0) { in Initialize()
116 << " is not a multiple of block size " << block_size_; in Initialize()
122 verity_tree_blocks(data_size_, block_size_, hash_size_, 0); in Initialize()
124 base_level.reserve(base_level_blocks * block_size_); in Initialize()
128 std::vector<unsigned char> zero_block(block_size_, 0); in Initialize()
144 ret &= EVP_DigestUpdate(mdctx, block, block_size_); in HashBlock()
[all …]
/system/update_engine/payload_generator/
Dblock_mapping_unittest.cc42 size_t block_size_{1024}; member in chromeos_update_engine::BlockMappingTest
43 BlockMapping bm_{block_size_}; // BlockMapping under test.
47 brillo::Blob blob(block_size_); in TEST_F()
57 test_utils::WriteFileString(old_part_.path(), string(block_size_, 'a')); in TEST_F()
71 brillo::Blob block(block_size_, 'a'); in TEST_F()
89 string old_contents(10 * block_size_, '\0'); in TEST_F()
91 old_contents[i] = 4 + i / block_size_; in TEST_F()
96 string new_contents(6 * block_size_, '\0'); in TEST_F()
98 new_contents[i] = i / block_size_; in TEST_F()
106 block_size_, in TEST_F()
Ddelta_diff_utils_unittest.cc116 block_size_, in SetUp()
117 block_size_ * kDefaultBlockCount); in SetUp()
120 block_size_, in SetUp()
121 block_size_ * kDefaultBlockCount); in SetUp()
144 old_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks()
145 new_part_.size / block_size_, in RunDeltaMovedAndZeroBlocks()
164 size_t block_size_{kBlockSize}; member in chromeos_update_engine::DeltaDiffUtilsTest
347 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 5); in TEST_F()
348 InitializePartitionWithUniqueBlocks(new_part_, block_size_, 42); in TEST_F()
366 InitializePartitionWithUniqueBlocks(old_part_, block_size_, 42); in TEST_F()
[all …]
Dblock_mapping.cc49 brillo::Blob blob(block_size_); in AddDiskBlock()
51 if (!utils::PReadAll(fd, blob.data(), block_size_, byte_offset, &bytes_read)) in AddDiskBlock()
53 if (static_cast<size_t>(bytes_read) != block_size_) in AddDiskBlock()
66 AddDiskBlock(fd, initial_byte_offset + block * block_size_); in AddManyDiskBlocks()
75 if (block_data.size() != block_size_) in AddBlock()
Draw_filesystem.cc34 result->block_size_ = block_size; in Create()
40 return block_size_; in GetBlockSize()
Dfake_filesystem.cc24 : block_size_(block_size), block_count_(block_count) {} in FakeFilesystem()
27 return block_size_; in GetBlockSize()
Dblock_mapping.h40 explicit BlockMapping(size_t block_size) : block_size_(block_size) {} in BlockMapping()
69 size_t block_size_; variable
Draw_filesystem.h55 uint64_t block_size_; variable
Dfake_filesystem.h55 uint64_t block_size_; variable
/system/update_engine/payload_consumer/
Dextent_reader.cc36 block_size_ = block_size; in Init()
44 total_size_ += extent.num_blocks() * block_size_; in Init()
75 cur_extent_->num_blocks() * block_size_ - cur_extent_bytes_read_; in Read()
84 cur_extent_->start_block() * block_size_ + cur_extent_bytes_read_, in Read()
92 if (cur_extent_bytes_read_ == cur_extent_->num_blocks() * block_size_) { in Read()
Dextent_writer.cc40 cur_extent_->num_blocks() * block_size_ - extent_bytes_written_; in Write()
49 cur_extent_->start_block() * block_size_ + extent_bytes_written_; in Write()
59 CHECK_EQ(extent_bytes_written_, cur_extent_->num_blocks() * block_size_); in Write()
Ddelta_performer.cc595 block_size_ = manifest_.block_size(); in Write()
871 install_part.block_size = block_size_; in ParseManifestPartitions()
874 install_part.hash_tree_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions()
875 install_part.hash_tree_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions()
877 install_part.hash_tree_offset = extent.start_block() * block_size_; in ParseManifestPartitions()
878 install_part.hash_tree_size = extent.num_blocks() * block_size_; in ParseManifestPartitions()
894 install_part.fec_data_offset = extent.start_block() * block_size_; in ParseManifestPartitions()
895 install_part.fec_data_size = extent.num_blocks() * block_size_; in ParseManifestPartitions()
897 install_part.fec_offset = extent.start_block() * block_size_; in ParseManifestPartitions()
898 install_part.fec_size = extent.num_blocks() * block_size_; in ParseManifestPartitions()
[all …]
Dextent_writer.h61 block_size_ = block_size; in Init()
71 size_t block_size_{0};
Dpartition_update_generator_android.cc45 block_size_(block_size) {} in PartitionUpdateGeneratorAndroid()
163 source_size % block_size_ != 0) { in CreatePartitionUpdate()
197 copy_extent.set_num_blocks(partition_size / block_size_); in CreatePartitionUpdate()
Dextent_reader.h61 size_t block_size_{0};
Dpartition_update_generator_android.h72 size_t block_size_; variable
Ddelta_performer.h402 uint32_t block_size_{0};
/system/extras/partition_tools/
Dlpunpack.cc72 uint32_t block_size_; member in SparseWriter
255 : output_fd_(output_fd), image_fd_(image_fd), block_size_(block_size) {} in SparseWriter()
258 auto buffer = std::make_unique<uint8_t[]>(block_size_); in WriteExtent()
268 if (remaining_bytes < block_size_) { in WriteExtent()
272 if (!android::base::ReadFully(image_fd_, buffer.get(), block_size_)) { in WriteExtent()
279 remaining_bytes -= block_size_; in WriteExtent()
294 if (ShouldSkipChunk(data, block_size_)) { in WriteBlock()
295 hole_size_ += block_size_; in WriteBlock()
306 if (!android::base::WriteFully(output_fd_, data, block_size_)) { in WriteBlock()
/system/core/fs_mgr/liblp/
Dimages.cpp139 block_size_(block_size), in ImageBuilder()
173 SparsePtr file(sparse_file_new(block_size_, block_device.size), sparse_file_destroy); in ImageBuilder()
248 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock()
249 LERROR << "sector " << sector << " is not aligned to block size " << block_size_; in SectorToBlock()
252 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock()
257 return (block * block_size_) / LP_SECTOR_SIZE; in BlockToSector()
381 uint32_t buffer[block_size_ / sizeof(uint32_t)]; in AddPartitionImage()
402 output_sector += block_size_ / LP_SECTOR_SIZE; in AddPartitionImage()
436 if ((extent.num_sectors * LP_SECTOR_SIZE) % block_size_ != 0) { in CheckExtentOrdering()
Dimages.h60 uint32_t block_size_; variable
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_writer.h87 uint64_t block_size() const { return block_size_; }; in block_size()
114 uint64_t block_size_; variable
/system/extras/verity/include/verity/
Dhash_tree_builder.h84 size_t block_size_; variable
/system/core/fs_mgr/libdm/
Ddm_target.cpp124 if (!block_size_) return target_string_; in GetParameterString()
125 return target_string_ + " 1 block_size:" + std::to_string(block_size_); in GetParameterString()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h178 void SetBlockSize(uint32_t block_size) { block_size_ = block_size; } in SetBlockSize()
185 uint32_t block_size_ = 0; variable
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp798 fmap->block_size_ = blocksz; in Open()

12