Lines Matching refs:sparse_file
46 struct sparse_file *sparse_file; member
87 struct sparse_file *sparse_file; in io_manager_import_sparse() local
97 sparse_file = sparse_file_import(fd, false, false); in io_manager_import_sparse()
98 if (!sparse_file) { in io_manager_import_sparse()
103 sm->block_size = sparse_file_block_size(sparse_file); in io_manager_import_sparse()
104 sm->blocks_count = (sparse_file_len(sparse_file, 0, 0) - 1) in io_manager_import_sparse()
113 retval = sparse_file_foreach_chunk(sparse_file, true, false, in io_manager_import_sparse()
119 sparse_file_destroy(sparse_file); in io_manager_import_sparse()
156 sm->sparse_file = sparse_file_new(sm->block_size, img_size); in io_manager_configure()
157 if (!sm->sparse_file) { in io_manager_configure()
172 sm->sparse_file = NULL; in io_manager_configure()
177 sparse_file_destroy(sm->sparse_file); in io_manager_configure()
295 retval = sparse_file_add_data(sm->sparse_file, sm->blocks[start], in sparse_merge_blocks()
307 if (sm->sparse_file) { in sparse_close_channel()
325 retval = sparse_file_write(sm->sparse_file, sm->fd, in sparse_close_channel()
330 if (sm->sparse_file) in sparse_close_channel()
331 sparse_file_destroy(sm->sparse_file); in sparse_close_channel()