Home | History | Annotate | Download | only in libsparse

Lines Matching refs:bb

83 	struct backed_block *bb;
87 for (bb = backed_block_iter_new(s->backed_block_list); bb;
88 bb = backed_block_iter_next(bb)) {
89 if (backed_block_block(bb) > last_block) {
94 last_block = backed_block_block(bb) +
95 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
105 struct backed_block *bb)
107 switch (backed_block_type(bb)) {
109 write_data_chunk(out, backed_block_len(bb), backed_block_data(bb));
112 write_file_chunk(out, backed_block_len(bb),
113 backed_block_filename(bb), backed_block_file_offset(bb));
116 write_fd_chunk(out, backed_block_len(bb),
117 backed_block_fd(bb), backed_block_file_offset(bb));
120 write_fill_chunk(out, backed_block_len(bb),
121 backed_block_fill_val(bb));
128 struct backed_block *bb;
132 for (bb = backed_block_iter_new(s->backed_block_list); bb;
133 bb = backed_block_iter_next(bb)) {
134 if (backed_block_block(bb) > last_block) {
135 unsigned int blocks = backed_block_block(bb) - last_block;
138 sparse_file_write_block(out, bb);
139 last_block = backed_block_block(bb) +
140 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
230 struct backed_block *bb;
249 for (bb = start; bb; bb = backed_block_iter_next(bb)) {
252 sparse_file_write_block(out_counter, bb);
260 backed_block_split(from->backed_block_list, bb, len - file_len);
261 last_bb = bb;
266 last_bb = bb;
275 return bb;
281 struct backed_block *bb;
294 bb = move_chunks_up_to_len(in_s, s, max_len);
304 } while (bb);