Home | History | Annotate | Download | only in tests

Lines Matching refs:fd2

1655 		int fd1, fd2;
1664 fd2 = openat(btrfs_test_dir_fd, "file2", O_RDWR|O_CREAT, 0600);
1665 if (fd2 < 0)
1672 if (write(fd2, buf, sizeof(buf)) < 0)
1673 perror_msg_and_fail("write: fd2");
1674 if (write(fd2, buf, sizeof(buf)) < 0)
1675 perror_msg_and_fail("write: fd2");
1677 close(fd2);
1678 fd2 = openat(btrfs_test_dir_fd, "file2", O_RDONLY);
1679 if (fd2 < 0)
1687 argsp->info[0].dest_fd = fd2;
1689 argsp->info[1].dest_fd = fd2;
1691 argsp->info[2].dest_fd = fd2;
1729 close(fd2);
1733 close(fd2);