Lines Matching refs:fiemap
186 struct fiemap *fiemap = (struct fiemap *)buf; in filefrag_fiemap() local
187 struct fiemap_extent *fm_ext = &fiemap->fm_extents[0]; in filefrag_fiemap()
188 int count = (sizeof(buf) - sizeof(*fiemap)) / in filefrag_fiemap()
199 memset(fiemap, 0, sizeof(struct fiemap)); in filefrag_fiemap()
208 fiemap->fm_length = ~0ULL; in filefrag_fiemap()
209 fiemap->fm_flags = flags; in filefrag_fiemap()
210 fiemap->fm_extent_count = count; in filefrag_fiemap()
211 rc = ioctl(fd, FS_IOC_FIEMAP, (unsigned long) fiemap); in filefrag_fiemap()
215 "flags %x\n", fiemap->fm_flags); in filefrag_fiemap()
222 if (fiemap->fm_mapped_extents == 0) in filefrag_fiemap()
230 for (i = 0; i < fiemap->fm_mapped_extents; i++) { in filefrag_fiemap()
249 fiemap->fm_start = (fm_ext[i - 1].fe_logical + in filefrag_fiemap()