Lines Matching refs:fiemap
44 #include <ext2fs/fiemap.h>
50 int force_bmap; /* force use of FIBMAP instead of FIEMAP */
186 struct fiemap *fiemap = (struct fiemap *)buf;
187 struct fiemap_extent *fm_ext = &fiemap->fm_extents[0];
188 int count = (sizeof(buf) - sizeof(*fiemap)) /
199 memset(fiemap, 0, sizeof(struct fiemap));
208 fiemap->fm_length = ~0ULL;
209 fiemap->fm_flags = flags;
210 fiemap->fm_extent_count = count;
211 rc = ioctl(fd, FS_IOC_FIEMAP, (unsigned long) fiemap);
214 printf("FIEMAP failed with unsupported "
215 "flags %x\n", fiemap->fm_flags);
222 if (fiemap->fm_mapped_extents == 0)
230 for (i = 0; i < fiemap->fm_mapped_extents; i++) {
249 fiemap->fm_start = (fm_ext[i - 1].fe_logical +