Lines Matching refs:fdr
36 static struct file_dedupe_range *fdr; variable
61 memset(fdr, 0, sizeof(struct file_dedupe_range) + in verify_ioctl()
64 fdr->src_length = tc->src_length; in verify_ioctl()
65 fdr->dest_count = 1; in verify_ioctl()
66 fdr->info[0].dest_fd = fd_dest; in verify_ioctl()
68 TEST(ioctl(fd_src, FIDEDUPERANGE, fdr)); in verify_ioctl()
77 if (fdr->info[0].bytes_deduped != tc->bytes_deduped) { in verify_ioctl()
80 fdr->info[0].bytes_deduped, tc->bytes_deduped, in verify_ioctl()
81 fdr->info[0].status); in verify_ioctl()
85 if (fdr->info[0].status != tc->status) { in verify_ioctl()
88 fdr->info[0].status, tc->status); in verify_ioctl()
105 if (fdr) in cleanup()
106 free(fdr); in cleanup()
111 fdr = SAFE_MALLOC(sizeof(struct file_dedupe_range) + in setup()