Searched defs:block_size (Results 1 - 8 of 8) sorted by relevance

/system/core/libsparse/
H A Dsparse_file.h23 unsigned int block_size; member in struct:sparse_file
H A Dimg2simg.c43 fprintf(stderr, "Usage: img2simg <raw_image_file> <sparse_image_file> [<block_size>]\n");
53 unsigned int block_size = 4096; local
62 block_size = atoi(argv[3]);
65 if (block_size < 1024 || block_size % 4 != 0) {
93 s = sparse_file_new(block_size, len);
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 */
366 max_len = ALIGN_DOWN(max_len, bbl->block_size);
380 new_bb->block = bb->block + max_len / bbl->block_size;
H A Dsparse.c29 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) argument
36 s->backed_block_list = backed_block_list_new(block_size);
42 s->block_size = block_size;
94 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
96 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) {
135 write_skip_chunk(out, (int64_t)blocks * s->block_size);
139 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
142 pad = s->len - (int64_t)last_block * s->block_size;
159 out = output_file_open_fd(fd, s->block_size,
[all...]
H A Doutput_file.c93 unsigned int block_size; member in struct:output_file
353 if (skip_len % out->block_size) {
355 skip_len, out->block_size);
362 chunk_header.chunk_sz = skip_len / out->block_size;
383 rnd_up_len = ALIGN(len, out->block_size);
388 chunk_header.chunk_sz = rnd_up_len / out->block_size;
399 count = out->block_size / sizeof(uint32_t);
418 rnd_up_len = ALIGN(len, out->block_size);
424 chunk_header.chunk_sz = rnd_up_len / out->block_size;
488 unsigned int rnd_up_len = ALIGN(len, out->block_size);
552 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument
641 output_file_open_callback(int (*write)(void *, const void *, int), void *priv, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
667 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
[all...]
/system/extras/tests/ext4/
H A Dcorrupt_gdt_free_blocks.c16 int block_size; local
55 block_size = 1 << (10 + sb.s_log_block_size);
67 if (lseek(fd, block_size, SEEK_SET) == -1) {
/system/extras/ext4_utils/
H A Dext4_utils.h110 u32 block_size; member in struct:fs_info
/system/vold/
H A Dcryptfs.c89 int fd, block_size; local
110 block_size = 1024 << sb.s_log_block_size;
112 len = ( ((off64_t)sb.s_blocks_count_hi << 32) + sb.s_blocks_count_lo) * block_size;

Completed in 237 milliseconds