Lines Matching refs:num_extents
207 static int filefrag_fiemap(int fd, int blk_shift, int *num_extents, in filefrag_fiemap() argument
288 *num_extents = tot_extents; in filefrag_fiemap()
295 static int filefrag_fibmap(int fd, int blk_shift, int *num_extents, in filefrag_fibmap() argument
315 for (i = 0, logical = 0, *num_extents = 0, count = last_block = 0; in filefrag_fibmap()
336 if (*num_extents == 0 || block != last_block + 1 || in filefrag_fibmap()
342 if (*num_extents != 0 && fm_last.fe_length) { in filefrag_fibmap()
348 if (force_extent && *num_extents == 0) in filefrag_fibmap()
350 if (force_extent && *num_extents != 0) { in filefrag_fibmap()
351 print_extent_info(&fm_ext, *num_extents - 1, in filefrag_fibmap()
363 (*num_extents)++; in filefrag_fibmap()
371 if (force_extent && *num_extents != 0) { in filefrag_fibmap()
378 print_extent_info(&fm_ext, *num_extents - 1, expected, in filefrag_fibmap()
394 int num_extents = 1, expected = ~0; local
475 rc = filefrag_fiemap(fd, blk_shift, &num_extents, &st);
480 expected = filefrag_fibmap(fd, blk_shift, &num_extents,
502 if (num_extents == 1)
505 printf("%s: %d extents found", filename, num_extents);
507 if (is_ext2 && expected && expected < num_extents)