Lines Matching refs:fiemap
1352 struct fiemap *fiemap; in btrfs_test_ino_path_ioctls() local
1393 size = sizeof(*fiemap) + 2 * sizeof(fiemap->fm_extents[0]); in btrfs_test_ino_path_ioctls()
1394 fiemap = malloc(size); in btrfs_test_ino_path_ioctls()
1395 if (!fiemap) in btrfs_test_ino_path_ioctls()
1397 memset(fiemap, 0, size); in btrfs_test_ino_path_ioctls()
1399 fiemap->fm_length = sizeof(buf); in btrfs_test_ino_path_ioctls()
1400 fiemap->fm_extent_count = 2; in btrfs_test_ino_path_ioctls()
1406 fiemap->fm_start, fiemap->fm_length); in btrfs_test_ino_path_ioctls()
1407 prfl_btrfs(fiemap_flags, fiemap->fm_flags, "FIEMAP_FLAG_???"); in btrfs_test_ino_path_ioctls()
1408 printf(", fm_extent_count=%u}", fiemap->fm_extent_count); in btrfs_test_ino_path_ioctls()
1409 ioctl(fd, FS_IOC_FIEMAP, fiemap); in btrfs_test_ino_path_ioctls()
1411 prfl_btrfs(fiemap_flags, fiemap->fm_flags, "FIEMAP_FLAG_???"); in btrfs_test_ino_path_ioctls()
1413 fiemap->fm_mapped_extents); in btrfs_test_ino_path_ioctls()
1417 for (i = 0; i < fiemap->fm_mapped_extents; i++) { in btrfs_test_ino_path_ioctls()
1419 fe = &fiemap->fm_extents[i]; in btrfs_test_ino_path_ioctls()
1437 args.inum = fiemap->fm_extents[0].fe_physical; in btrfs_test_ino_path_ioctls()
1453 free(fiemap); in btrfs_test_ino_path_ioctls()