Searched refs:fiemap_buf (Results 1 – 2 of 2) sorted by relevance
498 struct fiemap fiemap_buf; in file_frag_count() local503 memset(&fiemap_buf, 0, sizeof(struct fiemap)); in file_frag_count()504 fiemap_buf.fm_start = 0; in file_frag_count()505 fiemap_buf.fm_length = FIEMAP_MAX_OFFSET; in file_frag_count()506 fiemap_buf.fm_flags |= FIEMAP_FLAG_SYNC; in file_frag_count()508 ret = ioctl(fd, FS_IOC_FIEMAP, &fiemap_buf); in file_frag_count()512 return fiemap_buf.fm_mapped_extents; in file_frag_count()795 struct fiemap *fiemap_buf = NULL; in get_file_extents() local809 fiemap_buf = malloc(fie_buf_size); in get_file_extents()810 if (fiemap_buf == NULL) in get_file_extents()[all …]
512 struct fiemap *fiemap_buf; in try_fiemap_copy() local522 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()[all …]