Lines Matching refs:fiemap
1190 struct fiemap *fiemap; in btrfs_test_ino_path_ioctls() local
1232 size = sizeof(*fiemap) + 2 * sizeof(fiemap->fm_extents[0]); in btrfs_test_ino_path_ioctls()
1233 fiemap = malloc(size); in btrfs_test_ino_path_ioctls()
1234 if (!fiemap) in btrfs_test_ino_path_ioctls()
1236 memset(fiemap, 0, size); in btrfs_test_ino_path_ioctls()
1238 fiemap->fm_length = sizeof(buf); in btrfs_test_ino_path_ioctls()
1239 fiemap->fm_extent_count = 2; in btrfs_test_ino_path_ioctls()
1244 fd, fiemap->fm_start, fiemap->fm_length); in btrfs_test_ino_path_ioctls()
1245 printflags(fiemap_flags, fiemap->fm_flags, "FIEMAP_FLAG_???"); in btrfs_test_ino_path_ioctls()
1246 printf(", fm_extent_count=%u}", fiemap->fm_extent_count); in btrfs_test_ino_path_ioctls()
1247 ioctl(fd, FS_IOC_FIEMAP, fiemap); in btrfs_test_ino_path_ioctls()
1249 printflags(fiemap_flags, fiemap->fm_flags, "FIEMAP_FLAG_???"); in btrfs_test_ino_path_ioctls()
1251 fiemap->fm_mapped_extents); in btrfs_test_ino_path_ioctls()
1255 for (i = 0; i < fiemap->fm_mapped_extents; i++) { in btrfs_test_ino_path_ioctls()
1257 fe = &fiemap->fm_extents[i]; in btrfs_test_ino_path_ioctls()
1275 args.inum = fiemap->fm_extents[0].fe_physical; in btrfs_test_ino_path_ioctls()
1290 free(fiemap); in btrfs_test_ino_path_ioctls()