Home | History | Annotate | Download | only in block

Lines Matching refs:sectors

33     /* each chunk contains a certain number of sectors,
36 * sectors[i] is the sector beginning at offsets[i],
37 * sectorcounts[i] is the number of sectors in that chunk,
38 * the sectors array is ordered
45 uint64_t* sectors;
89 s->offsets = s->lengths = s->sectors = s->sectorcounts = NULL;
132 s->sectors = qemu_realloc(s->sectors, new_size);
140 last_out_offset = s->sectors[i-1]+s->sectorcounts[i-1];
149 s->sectors[i] = last_out_offset+read_off(s->fd);
176 if(chunk_num>=s->n_chunks || s->sectors[chunk_num]>sector_num ||
177 s->sectors[chunk_num]+s->sectorcounts[chunk_num]<=sector_num)
189 if(s->sectors[chunk3]>sector_num)
191 else if(s->sectors[chunk3]+s->sectorcounts[chunk3]>sector_num)
265 sector_offset_in_chunk = sector_num+i-s->sectors[s->current_chunk];
279 free(s->sectors);