Home
last modified time | relevance | path

Searched refs:fiemap_buf (Results 1 – 2 of 2) sorted by relevance

/external/e2fsprogs/misc/
De4defrag.c497 struct fiemap fiemap_buf; in file_frag_count() local
502 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() local
808 fiemap_buf = malloc(fie_buf_size); in get_file_extents()
809 if (fiemap_buf == NULL) in get_file_extents()
[all …]
Dcreate_inode.c503 struct fiemap *fiemap_buf; in try_fiemap_copy() local
513 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 …]