Lines Matching refs:num_extents
182 static int filefrag_fiemap(int fd, int blk_shift, int *num_extents, in filefrag_fiemap() argument
253 *num_extents = tot_extents; in filefrag_fiemap()
260 static int filefrag_fibmap(int fd, int blk_shift, int *num_extents, in filefrag_fibmap() argument
279 for (i = 0, logical = 0, *num_extents = 0, count = last_block = 0; in filefrag_fibmap()
299 if (*num_extents == 0) { in filefrag_fibmap()
300 (*num_extents)++; in filefrag_fibmap()
310 print_extent_info(&fm_ext, *num_extents - 1, in filefrag_fibmap()
316 (*num_extents)++; in filefrag_fibmap()
320 (*num_extents)++; in filefrag_fibmap()
327 print_extent_info(&fm_ext, *num_extents - 1, in filefrag_fibmap()
341 int num_extents = 1, expected = ~0; local
417 filefrag_fiemap(fd, blk_shift, &num_extents, &st) != 0) {
418 expected = filefrag_fibmap(fd, blk_shift, &num_extents,
433 if (num_extents == 1)
436 printf("%s: %d extents found", filename, num_extents);
438 if (is_ext2 && expected && expected < num_extents)