Searched refs:fiemap_buf (Results 1 – 2 of 2) sorted by relevance
497 struct fiemap fiemap_buf; in file_frag_count() local502 memset(&fiemap_buf, 0, sizeof(struct fiemap)); in file_frag_count()503 fiemap_buf.fm_start = 0; in file_frag_count()504 fiemap_buf.fm_length = FIEMAP_MAX_OFFSET; in file_frag_count()505 fiemap_buf.fm_flags |= FIEMAP_FLAG_SYNC; in file_frag_count()507 ret = ioctl(fd, FS_IOC_FIEMAP, &fiemap_buf); in file_frag_count()511 return fiemap_buf.fm_mapped_extents; in file_frag_count()794 struct fiemap *fiemap_buf = NULL; in get_file_extents() local808 fiemap_buf = malloc(fie_buf_size); in get_file_extents()809 if (fiemap_buf == NULL) in get_file_extents()[all …]
503 struct fiemap *fiemap_buf; in try_fiemap_copy() local513 err = ext2fs_get_memzero(fie_buf_size, &fiemap_buf); in try_fiemap_copy()517 ext_buf = fiemap_buf->fm_extents; in try_fiemap_copy()518 memset(fiemap_buf, 0, fie_buf_size); in try_fiemap_copy()519 fiemap_buf->fm_length = FIEMAP_MAX_OFFSET; in try_fiemap_copy()520 fiemap_buf->fm_flags |= FIEMAP_FLAG_SYNC; in try_fiemap_copy()521 fiemap_buf->fm_extent_count = EXTENT_MAX_COUNT; in try_fiemap_copy()524 fiemap_buf->fm_start = pos; in try_fiemap_copy()526 err = ioctl(fd, FS_IOC_FIEMAP, fiemap_buf); in try_fiemap_copy()533 } else if (fiemap_buf->fm_mapped_extents == 0) in try_fiemap_copy()[all …]