Home
last modified time | relevance | path

Searched refs:last_block (Results 1 – 5 of 5) sorted by relevance

/system/core/libsparse/
Dsparse.c84 unsigned int last_block = 0; in sparse_count_chunks() local
89 if (backed_block_block(bb) > last_block) { in sparse_count_chunks()
94 last_block = backed_block_block(bb) + in sparse_count_chunks()
97 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()
135 unsigned int last_block = 0; in write_all_blocks() local
141 if (backed_block_block(bb) > last_block) { in write_all_blocks()
142 unsigned int blocks = backed_block_block(bb) - last_block; in write_all_blocks()
148 last_block = backed_block_block(bb) + in write_all_blocks()
152 pad = s->len - (int64_t)last_block * s->block_size; in write_all_blocks()
241 unsigned int last_block = 0; in move_chunks_up_to_len() local
[all …]
/system/extras/ext4_utils/
Dext2simg.c74 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); in build_sparse_ext() local
88 for (block = 0; block < last_block; block++) { in build_sparse_ext()
107 u32 len_blocks = last_block - start_contiguous_block; in build_sparse_ext()
Dindirect.c470 u32 last_block = EXT4_NDIR_BLOCKS + aux_info.blocks_per_ind + in inode_attach_resize() local
475 size = (u64)last_block * info.block_size; in inode_attach_resize()
/system/vold/
Dcryptfs.c2552 static u64 last_block = (u64)-1; local
2555 if (completed || (last_block != (u64)-1 && block != last_block + 1)) {
2556 SLOGI("Encrypted to block %" PRId64, last_block);
2557 last_block = -1;
2561 if (!completed && (last_block == (u64)-1 || block != last_block + 1)) {
2567 last_block = block;
/system/update_engine/sample_images/
Dgenerate_images.sh62 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \