Searched refs:block_size (Results 26 - 50 of 72) sorted by relevance

123

/system/extras/ext4_utils/
H A Dcontents.c56 if (len % info.block_size + dentry_len > info.block_size)
57 len += info.block_size - (len % info.block_size);
72 u32 start_block = *offset / info.block_size;
73 u32 end_block = (*offset + rec_len - 1) / info.block_size;
79 prev->rec_len += end_block * info.block_size - *offset;
80 *offset = end_block * info.block_size;
112 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size);
113 len = blocks * info.block_size;
[all...]
H A Dmake_ext4fs.c264 dentries[i].link = calloc(info.block_size, 1);
265 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1);
364 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
374 return info.block_size * 8;
379 return DIV_ROUND_UP(info.len, info.block_size) / 4;
384 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
387 inodes = EXT4_ALIGN(inodes, (info.block_size / info.inode_size));
399 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
402 info.block_size);
406 info.block_size)
[all...]
H A Dallocate.c172 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size);
177 aux_info.inode_table_blocks * info.block_size, block);
290 bg->bitmaps = calloc(info.block_size, 2);
292 bg->inode_bitmap = bg->bitmaps + info.block_size;
300 sparse_file_add_data(ext4_sparse_file, bg->bitmaps, 2 * info.block_size,
694 block = calloc(info.block_size, 1);
696 error("get_xattr: failed to allocate %d", info.block_size);
703 inode->i_blocks_lo = cpu_to_le32(le32_to_cpu(inode->i_blocks_lo) + (info.block_size / 512));
706 int result = sparse_file_add_data(ext4_sparse_file, block, info.block_size, block_num);
/system/update_engine/payload_generator/
H A Dpayload_generation_config.cc189 TEST_AND_RETURN_FALSE(part.size % block_size == 0);
206 TEST_AND_RETURN_FALSE(part.size % block_size == 0);
215 hard_chunk_size % block_size == 0);
216 TEST_AND_RETURN_FALSE(soft_chunk_size % block_size == 0);
218 TEST_AND_RETURN_FALSE(rootfs_partition_size % block_size == 0);
H A Dfake_filesystem.h34 FakeFilesystem(uint64_t block_size, uint64_t block_count);
H A Dpayload_generation_config.h187 // TODO(deymo): Remove the block_size member and maybe replace it with a
189 // pick the block_size they want, but for now only 4 KiB is supported.
192 size_t block_size = 4096; member in struct:chromeos_update_engine::PayloadGenerationConfig
H A Ddelta_diff_utils_unittest.cc48 off_t block_size,
58 fseek(fp.get(), extent.start_block() * block_size, SEEK_SET) == 0);
60 std::min(static_cast<uint64_t>(extent.num_blocks()) * block_size,
64 offset += extent.num_blocks() * block_size;
72 uint64_t block_size, off_t size) {
77 part->fs_interface.reset(new FakeFilesystem(block_size, size / block_size));
84 // The |block_size| should be a divisor of the partition size.
87 uint64_t block_size,
89 TEST_AND_RETURN_FALSE(part.size % block_size
46 WriteExtents(const string& part_path, const vector<Extent>& extents, off_t block_size, const brillo::Blob& data) argument
71 CreatePartition(PartitionConfig* part, const string& pattern, uint64_t block_size, off_t size) argument
86 InitializePartitionWithUniqueBlocks(const PartitionConfig& part, uint64_t block_size, uint64_t tag) argument
[all...]
H A Ddelta_diff_generator.cc91 LOG(INFO) << "Block count: " << new_part.size / config.block_size;
/system/nfc/src/nfc/tags/
H A Drw_i93.c185 p_i93->block_size = I93_TAG_IT_HF_I_STD_PRO_CHIP_INLAY_BLK_SIZE;
229 STREAM_TO_UINT8(p_i93->block_size, p);
231 p_i93->block_size = (p_i93->block_size & 0x1F) + 1;
246 p_i93->block_size = 4;
281 p_i93->block_size = 4;
426 rw_data.i93_sys_info.block_size = p_i93->block_size;
685 p_cmd->len = 11 + rw_cb.tcb.i93.block_size;
720 ARRAY_TO_STREAM(p, p_data, rw_cb.tcb.i93.block_size);
[all...]
/system/update_engine/payload_consumer/
H A Dfile_descriptor.cc80 off_t block_size = utils::BlockDevSize(fd_);
81 return block_size < 0 ? 0 : block_size;
H A Dbzip_extent_writer.h45 uint32_t block_size) override;
H A Dxz_extent_writer.h44 uint32_t block_size) override;
H A Dbzip_extent_writer.cc29 uint32_t block_size) {
37 return next_->Init(fd, extents, block_size);
27 Init(FileDescriptorPtr fd, const vector<Extent>& extents, uint32_t block_size) argument
H A Dxz_extent_writer.cc59 uint32_t block_size) {
62 return underlying_writer_->Init(fd, extents, block_size);
57 Init(FileDescriptorPtr fd, const vector<Extent>& extents, uint32_t block_size) argument
/system/update_engine/scripts/update_payload/
H A Dcommon.py147 def FormatExtent(ex, block_size=0):
149 if block_size:
150 return '%d->%d * %d' % (ex.start_block, end_block, block_size)
H A Dtest_utils.py132 block_size: the block size pertaining to update operations
139 self.block_size = 0
162 def SetBlockSize(self, block_size):
164 self.block_size = block_size
165 _SetMsgField(self.manifest, 'block_size', block_size)
343 if not self.block_size:
350 (sigs_len + self.block_size - 1) / self.block_size)])
[all...]
H A Dchecker.py284 def __init__(self, payload, assert_type=None, block_size=0,
291 block_size: Expected filesystem / payload block size (optional).
300 self.block_size = block_size if block_size else _DEFAULT_BLOCK_SIZE
301 if not _IsPowerOfTwo(self.block_size):
303 'Expected block (%d) size is not a power of two.' % self.block_size)
479 def _CheckBlocksFitLength(length, num_blocks, block_size, length_name,
489 block_size: The size of each block in bytes.
496 # Check: length <= num_blocks * block_size
[all...]
H A Dpayload.py263 report_out_file=None, assert_type=None, block_size=0,
273 block_size: expected filesystem / payload block size
286 self, assert_type=assert_type, block_size=block_size,
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.h41 u_int32_t block_size; member in struct:f2fs_info
/system/core/libsparse/
H A Dbacked_block.c52 unsigned int block_size; member in struct:backed_block_list
123 struct backed_block_list *backed_block_list_new(unsigned int block_size) argument
126 b->block_size = block_size;
209 block_len = a->len / bbl->block_size; /* rounds down */
370 max_len = ALIGN_DOWN(max_len, bbl->block_size);
384 new_bb->block = bb->block + max_len / bbl->block_size;
H A Dsparse_read.c107 unsigned int len = blocks * s->block_size;
109 if (chunk_size % s->block_size != 0) {
113 if (chunk_size / s->block_size != blocks) {
144 int64_t len = (int64_t)blocks * s->block_size;
189 int64_t len = (int64_t)blocks * s->block_size;
360 uint32_t *buf = malloc(s->block_size);
373 to_read = min(remain, s->block_size);
381 if (to_read == s->block_size) {
383 for (i = 1; i < s->block_size / sizeof(uint32_t); i++) {
H A Dappend2simg.c101 } else if (input_len % sparse_output->block_size) {
107 output_block = sparse_output->len / sparse_output->block_size;
H A Dbacked_block.h57 struct backed_block_list *backed_block_list_new(unsigned int block_size);
/system/core/libsparse/include/sparse/
H A Dsparse.h32 * @block_size - minimum size of a chunk
37 * block_size specifies the minimum size of a chunk in the file. The maximum
38 * size of the file is 2**32 * block_size (16TB for 4k block size).
42 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len);
63 * [block * block_size : block * block_size + len) must not already be used in
84 * The region [block * block_size : block * block_size + len) must not already
103 * The region [block * block_size : block * block_size
[all...]
/system/update_engine/scripts/
H A Dpaycheck.py126 opts.block_size or opts.allow_unhashed or
196 block_size=int(options.block_size),

Completed in 582 milliseconds

123