Lines Matching refs:fiemap_buf
512 struct fiemap *fiemap_buf; in try_fiemap_copy() local
522 err = ext2fs_get_memzero(fie_buf_size, &fiemap_buf); in try_fiemap_copy()
526 ext_buf = fiemap_buf->fm_extents; in try_fiemap_copy()
527 memset(fiemap_buf, 0, fie_buf_size); in try_fiemap_copy()
528 fiemap_buf->fm_length = FIEMAP_MAX_OFFSET; in try_fiemap_copy()
529 fiemap_buf->fm_flags |= FIEMAP_FLAG_SYNC; in try_fiemap_copy()
530 fiemap_buf->fm_extent_count = EXTENT_MAX_COUNT; in try_fiemap_copy()
533 fiemap_buf->fm_start = pos; in try_fiemap_copy()
535 err = ioctl(fd, FS_IOC_FIEMAP, fiemap_buf); in try_fiemap_copy()
542 } else if (fiemap_buf->fm_mapped_extents == 0) in try_fiemap_copy()
544 for (i = 0, ext = ext_buf; i < fiemap_buf->fm_mapped_extents; in try_fiemap_copy()
560 } while (fiemap_buf->fm_mapped_extents == EXTENT_MAX_COUNT && in try_fiemap_copy()
563 ext2fs_free_mem(&fiemap_buf); in try_fiemap_copy()