Lines Matching refs:file1_s1d2

49 static const char file1_s1d2[] = TMP_DIR "/s1d1/s1d2/f1";  variable
316 create_file(_metadata, file1_s1d2); in create_layout1()
342 EXPECT_EQ(0, remove_path(file1_s1d2)); in remove_layout1()
411 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
565 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); in TEST_F_FORK()
795 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
845 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
846 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
878 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
879 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
880 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
934 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
935 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
936 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
959 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
960 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
961 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
984 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
985 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
986 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
1016 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
1026 ASSERT_EQ(0, mknod(file1_s1d2, S_IFREG | 0700, 0)); in TEST_F_FORK()
1027 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
1038 ASSERT_EQ(0, mknod(file1_s1d2, S_IFREG | 0700, 0)); in TEST_F_FORK()
1041 ASSERT_EQ(-1, unlink(file1_s1d2)); in TEST_F_FORK()
1250 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1284 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1305 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1335 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
1883 copy_binary(_metadata, file1_s1d2); in TEST_F_FORK()
1894 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
1895 test_execute(_metadata, 0, file1_s1d2); in TEST_F_FORK()
1923 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
1933 ASSERT_EQ(-1, link(file1_s2d1, file1_s1d2)); in TEST_F_FORK()
1937 ASSERT_EQ(-1, link(file2_s1d3, file1_s1d2)); in TEST_F_FORK()
1940 ASSERT_EQ(0, link(file2_s1d2, file1_s1d2)); in TEST_F_FORK()
1953 ASSERT_EQ(0, link(file1_s1d2, file2_s1d2)); in TEST_F_FORK()
1989 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
2035 ASSERT_EQ(-1, rename(file1_s2d2, file1_s1d2)); in TEST_F_FORK()
2109 ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, file1_s1d2, in TEST_F_FORK()
2113 ASSERT_EQ(0, rename(file1_s1d2, dir_s1d3)); in TEST_F_FORK()
2167 ASSERT_EQ(0, unlink(file1_s1d2)); in refer_denied_by_default()
2178 ASSERT_EQ(layer1_err, test_rename(file1_s1d1, file1_s1d2)); in refer_denied_by_default()
2180 ASSERT_EQ(layer1_err, test_rename(file1_s1d2, file1_s1d1)); in refer_denied_by_default()
2195 ASSERT_EQ(EXDEV, test_rename(file1_s1d1, file1_s1d2)); in refer_denied_by_default()
2298 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
2305 ASSERT_EQ(-1, link(file1_s2d1, file1_s1d2)); in TEST_F_FORK()
2315 ASSERT_EQ(-1, link(file1_s2d2, file1_s1d2)); in TEST_F_FORK()
2338 ASSERT_EQ(-1, link(file2_s1d3, file1_s1d2)); in TEST_F_FORK()
2341 ASSERT_EQ(0, link(file2_s1d2, file1_s1d2)); in TEST_F_FORK()
2375 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
2394 ASSERT_EQ(-1, rename(file1_s2d1, file1_s1d2)); in TEST_F_FORK()
2419 ASSERT_EQ(-1, rename(file1_s2d2, file1_s1d2)); in TEST_F_FORK()
2472 ASSERT_EQ(-1, rename(file2_s1d3, file1_s1d2)); in TEST_F_FORK()
2476 ASSERT_EQ(0, rename(file2_s1d2, file1_s1d2)); in TEST_F_FORK()
2479 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
2481 ASSERT_EQ(-1, rename(dir_s2d3, file1_s1d2)); in TEST_F_FORK()
2605 ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d2)); in TEST_F_FORK()
2610 ASSERT_EQ(0, rename(file1_s1d2, file1_s2d3)); in TEST_F_FORK()
2644 const char *const dir_file1_s1d2 = file1_s1d2, *const dir_file2_s2d3 = in TEST_F_FORK()
2647 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
2648 ASSERT_EQ(0, mkdir(file1_s1d2, 0700)); in TEST_F_FORK()
2861 .path = file1_s1d2, in TEST_F_FORK()
2894 ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d1)); in TEST_F_FORK()
2900 ASSERT_EQ(-1, rename(file1_s1d2, file1_s2d3)); in TEST_F_FORK()
2907 ASSERT_EQ(0, rename(file1_s1d2, file1_s2d2)); in TEST_F_FORK()
2908 ASSERT_EQ(0, rename(file1_s2d2, file1_s1d2)); in TEST_F_FORK()
2961 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
3003 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
3030 ASSERT_EQ(0, unlink(file1_s1d2)); in test_make_file()
3046 ASSERT_EQ(0, mknod(file1_s1d2, mode | 0400, dev)) in test_make_file()
3048 TH_LOG("Failed to make file \"%s\": %s", file1_s1d2, in test_make_file()
3051 ASSERT_EQ(0, link(file1_s1d2, file2_s1d2)); in test_make_file()
3053 ASSERT_EQ(0, rename(file1_s1d2, file2_s1d2)); in test_make_file()
3115 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
3131 ASSERT_EQ(0, symlink("none", file1_s1d2)); in TEST_F_FORK()
3132 ASSERT_EQ(0, link(file1_s1d2, file2_s1d2)); in TEST_F_FORK()
3134 ASSERT_EQ(0, rename(file1_s1d2, file2_s1d2)); in TEST_F_FORK()
3157 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
3166 ASSERT_EQ(0, mkdir(file1_s1d2, 0700)); in TEST_F_FORK()
3186 .path = file1_s1d2, in TEST_F_FORK()
3201 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3202 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3203 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
3205 ASSERT_EQ(0, unlink(file1_s1d2)); in TEST_F_FORK()
3244 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
3317 const char *const file_none = file1_s1d2; in TEST_F_FORK()
3374 const char *const file_rt = file1_s1d2; in TEST_F_FORK()
3798 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3877 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3878 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3899 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3900 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3919 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
3920 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
3974 ASSERT_EQ(-1, rename(file1_s1d1, file1_s1d2)); in TEST_F_FORK()