Lines Matching refs:ext
24 void print_ext(struct file_ext *ext) in print_ext() argument
26 if (ext->end_blk == 0) in print_ext()
27 printf("%8d %8d %8d %8d\n", ext->f_pos, 0, 0, ext->blk_count); in print_ext()
29 printf("%8d %8d %8d %8d\n", ext->f_pos, ext->start_blk, in print_ext()
30 ext->end_blk, ext->blk_count); in print_ext()
95 struct file_ext ext; in main() local
135 ext.f_pos = 0; in main()
136 ext.start_blk = blknum; in main()
137 ext.end_blk = blknum; in main()
138 ext.blk_count = 1; in main()
149 if ((blknum == 0 && blknum == ext.end_blk) || (ext.end_blk + 1) == blknum) { in main()
150 ext.end_blk = blknum; in main()
151 ext.blk_count++; in main()
153 print_ext(&ext); in main()
154 ext.f_pos = i * st.st_blksize; in main()
155 ext.start_blk = blknum; in main()
156 ext.end_blk = blknum; in main()
157 ext.blk_count = 1; in main()
161 print_ext(&ext); in main()