Lines Matching refs:ext
54 void print_ext(struct file_ext *ext) in print_ext() argument
56 if (ext->end_blk == 0) in print_ext()
57 printf("%8d %8d %8d %8d\n", ext->f_pos, 0, 0, ext->blk_count); in print_ext()
59 printf("%8d %8d %8d %8d\n", ext->f_pos, ext->start_blk, in print_ext()
60 ext->end_blk, ext->blk_count); in print_ext()
147 struct file_ext ext; local
191 ext.f_pos = 0;
192 ext.start_blk = blknum;
193 ext.end_blk = blknum;
194 ext.blk_count = 1;
205 if ((blknum == 0 && blknum == ext.end_blk) || (ext.end_blk + 1) == blknum) {
206 ext.end_blk = blknum;
207 ext.blk_count++;
209 print_ext(&ext);
210 ext.f_pos = i * st.st_blksize;
211 ext.start_blk = blknum;
212 ext.end_blk = blknum;
213 ext.blk_count = 1;
217 print_ext(&ext);