TMP_DIR
static const char dir_s3d4[] = TMP_DIR "/s3d1/s3d2/s3d4";
static const char file1_s3d4[] = TMP_DIR "/s3d1/s3d2/s3d4/f1";
.path = TMP_DIR,
.path = TMP_DIR,
if (strcmp(walker, TMP_DIR) == 0)
create_directory(_metadata, TMP_DIR);
ASSERT_EQ(0, mount_opt(mnt, TMP_DIR))
remove_path(TMP_DIR);
ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL));
if (umount(TMP_DIR)) {
EXPECT_EQ(0, remove_path(TMP_DIR));
static const char bind_dir_s1d3[] = TMP_DIR "/s2d1/s2d2/s1d3";
static const char bind_file1_s1d3[] = TMP_DIR "/s2d1/s2d2/s1d3/f1";
static const char dir_s4d1[] = TMP_DIR "/s4d1";
static const char file1_s4d1[] = TMP_DIR "/s4d1/f1";
static const char file2_s4d1[] = TMP_DIR "/s4d1/f2";
static const char dir_s4d2[] = TMP_DIR "/s4d1/s4d2";
static const char file1_s4d2[] = TMP_DIR "/s4d1/s4d2/f1";
.path = TMP_DIR,
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d31/s1d41/f1");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d31/s1d41/f2");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d32/s1d42/f3");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d32/s1d42/f4");
create_directory(_metadata, TMP_DIR "/s2d1/s2d2");
create_directory(_metadata, TMP_DIR "/s3d1");
create_directory(_metadata, TMP_DIR "/s4d1");
open(TMP_DIR "/s2d1/s2d2", O_DIRECTORY | O_PATH | O_CLOEXEC);
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2", NULL,
remove_path(TMP_DIR "/s3d1/s1d41/f1");
remove_path(TMP_DIR "/s3d1/s1d41/f2");
remove_path(TMP_DIR "/s4d1/s1d42/f1");
remove_path(TMP_DIR "/s4d1/s1d42/f3");
remove_path(TMP_DIR "/s4d1/s1d42/f4");
remove_path(TMP_DIR "/s4d1/s1d42/f5");
.path = TMP_DIR "/s1d1",
.path = TMP_DIR "/s1d1/s1d2",
.path = TMP_DIR "/s1d1/s1d2/s1d31",
.path = TMP_DIR "/s1d1/s1d2/s1d32",
.path = TMP_DIR "/s1d1/s1d2/s1d31/s1d41",
.path = TMP_DIR "/s1d1/s1d2/s1d32/s1d42",
.path = TMP_DIR "/s1d1/s1d2/s1d31/s1d41/f1",
.path = TMP_DIR "/s1d1/s1d2/s1d31/s1d41/f2",
.path = TMP_DIR "/s1d1/s1d2/s1d32/s1d42/f3",
.path = TMP_DIR "/s2d1",
.path = TMP_DIR "/s3d1",
.path = TMP_DIR "/s4d1",
s1d41_bind_fd = open(TMP_DIR "/s2d1/s2d2/s1d31/s1d41",
s1d42_bind_fd = open(TMP_DIR "/s2d1/s2d2/s1d32/s1d42",
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s1d1/s1d2/s1d31/s1d41",
AT_FDCWD, TMP_DIR "/s3d1/s1d41"));
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s1d1/s1d2/s1d32/s1d42",
AT_FDCWD, TMP_DIR "/s4d1/s1d42"));
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d3/s1d41/f1");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d3/s1d41/f2");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f3");
create_file(_metadata, TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f4");
create_directory(_metadata, TMP_DIR "/s2d1/s2d2/s2d3/s2d4");
create_directory(_metadata, TMP_DIR "/s3d1/s3d2");
create_directory(_metadata, TMP_DIR "/s4d1");
self->s2d4_fd = open(TMP_DIR "/s2d1/s2d2/s2d3/s2d4",
open(TMP_DIR "/s3d1/s3d2", O_DIRECTORY | O_PATH | O_CLOEXEC);
ASSERT_EQ(0, mount(TMP_DIR "/s1d1/s1d2", TMP_DIR "/s2d1/s2d2/s2d3/s2d4",
ASSERT_EQ(0, mount(TMP_DIR "/s2d1/s2d2", TMP_DIR "/s3d1/s3d2", NULL,
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d41/f1");
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d41/f2");
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f1");
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f3");
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f4");
remove_path(TMP_DIR "/s1d1/s1d2/s1d3/s1d42/f5");
.path = TMP_DIR "/s1d1",
.path = TMP_DIR "/s1d1/s1d2",
.path = TMP_DIR "/s1d1/s1d2/s1d3",
.path = TMP_DIR "/s2d1",
.path = TMP_DIR "/s2d1/s2d2",
.path = TMP_DIR "/s2d1/s2d2/s2d3",
.path = TMP_DIR "/s3d1",
.path = TMP_DIR "/s4d1",
s1d3_bind_fd = open(TMP_DIR "/s3d1/s3d2/s2d3/s2d4/s1d3",
ASSERT_EQ(0, test_renameat(AT_FDCWD, TMP_DIR "/s2d1/s2d2/s2d3",
AT_FDCWD, TMP_DIR "/s4d1/s2d3"));
#define LOWER_BASE TMP_DIR "/lower"
#define UPPER_BASE TMP_DIR "/upper"
#define MERGE_BASE TMP_DIR "/merge"
open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC);
.file_path = TMP_DIR "/dir/file",
.file_path = TMP_DIR "/test/cgroup.procs",
.file_path = TMP_DIR "/self/status",
.file_path = TMP_DIR "/kernel/notes",
.source = TMP_DIR,
.file_path = TMP_DIR "/dir/file",
layer3_fs_tag_inode(_metadata, self, variant, TMP_DIR);
.path = TMP_DIR,
ASSERT_EQ(0, umount(TMP_DIR));
ASSERT_EQ(0, mount_opt(&mnt_tmp, TMP_DIR));
ASSERT_EQ(EACCES, test_open(TMP_DIR, O_RDONLY));
static const char dir_s1d1[] = TMP_DIR "/s1d1";
static const char file1_s1d1[] = TMP_DIR "/s1d1/f1";
static const char file2_s1d1[] = TMP_DIR "/s1d1/f2";
static const char dir_s1d2[] = TMP_DIR "/s1d1/s1d2";
static const char file1_s1d2[] = TMP_DIR "/s1d1/s1d2/f1";
static const char file2_s1d2[] = TMP_DIR "/s1d1/s1d2/f2";
static const char dir_s1d3[] = TMP_DIR "/s1d1/s1d2/s1d3";
static const char file1_s1d3[] = TMP_DIR "/s1d1/s1d2/s1d3/f1";
static const char file2_s1d3[] = TMP_DIR "/s1d1/s1d2/s1d3/f2";
.path = TMP_DIR,
static const char dir_s2d1[] = TMP_DIR "/s2d1";
static const char file1_s2d1[] = TMP_DIR "/s2d1/f1";
static const char dir_s2d2[] = TMP_DIR "/s2d1/s2d2";
static const char file1_s2d2[] = TMP_DIR "/s2d1/s2d2/f1";
static const char dir_s2d3[] = TMP_DIR "/s2d1/s2d2/s2d3";
static const char file1_s2d3[] = TMP_DIR "/s2d1/s2d2/s2d3/f1";
static const char file2_s2d3[] = TMP_DIR "/s2d1/s2d2/s2d3/f2";
static const char dir_s3d1[] = TMP_DIR "/s3d1";
static const char file1_s3d1[] = TMP_DIR "/s3d1/f1";
static const char dir_s3d2[] = TMP_DIR "/s3d1/s3d2";
static const char dir_s3d3[] = TMP_DIR "/s3d1/s3d2/s3d3";
static const char file1_s3d3[] = TMP_DIR "/s3d1/s3d2/s3d3/f1";
static const char stream_path[] = TMP_DIR "/stream.sock";
static const char dgram_path[] = TMP_DIR "/dgram.sock";
ASSERT_EQ(0, mkdir(TMP_DIR, 0700));
EXPECT_EQ(0, rmdir(TMP_DIR));