Lines Matching refs:block_size
129 LOG(INFO) << "Encrypted to sector " << offset / info.block_size * CRYPT_SECTOR_SIZE; in log_progress()
135 … LOG(INFO) << "Encrypting from sector " << data->offset / info.block_size * CRYPT_SECTOR_SIZE; in log_progress()
140 offset = data->offset + (off64_t)data->count * info.block_size; in log_progress()
151 if (pread64(data->realfd, data->buffer, info.block_size * data->count, data->offset) <= 0) { in flush_outstanding_data()
156 if (pwrite64(data->cryptofd, data->buffer, info.block_size * data->count, data->offset) <= 0) { in flush_outstanding_data()
166 (data->offset + data->count) / info.block_size * CRYPT_SECTOR_SIZE - 1; in flush_outstanding_data()
177 data->buffer = (char*)malloc(info.block_size * BLOCKS_AT_A_TIME); in encrypt_groups()
183 block_bitmap = (u8*)malloc(info.block_size); in encrypt_groups()
195 off64_t offset = (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap; in encrypt_groups()
197 ret = pread64(data->realfd, block_bitmap, info.block_size, offset); in encrypt_groups()
198 if (ret != (int)info.block_size) { in encrypt_groups()
203 offset = (u64)info.block_size * first_block; in encrypt_groups()
223 offset += info.block_size; in encrypt_groups()
226 if (offset % (info.block_size * BLOCKS_AT_A_TIME) == 0 || in encrypt_groups()
436 data.buffer = (char*)malloc(f2fs_info->block_size); in cryptfs_enable_inplace_f2fs()