static void setup(void) { SAFE_MKDIR(mntpoint, 0755); SAFE_MKFS(tst_device->dev, "xfs", NULL, NULL); SAFE_MOUNT(tst_device->dev, mntpoint, "xfs", 0, "usrquota"); mount_flag = 1; test_id = geteuid(); }
static void setup(void) { struct passwd *pw; SAFE_MKFS(tst_device->dev, tst_device->fs_type, NULL, NULL); SAFE_MKDIR(MNTPOINT, 0775); SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); mount_flag = 1; pw = SAFE_GETPWNAM("nobody"); SAFE_SETEUID(pw->pw_uid); }
static void prepare_device(void) { if (tst_test->format_device) { SAFE_MKFS(tdev.dev, tdev.fs_type, tst_test->dev_fs_opts, tst_test->dev_extra_opt); } if (tst_test->mount_device) { SAFE_MOUNT(tdev.dev, tst_test->mntpoint, tdev.fs_type, tst_test->mnt_flags, tst_test->mnt_data); mntpoint_mounted = 1; } }
static void setup(void) { ltpuser = SAFE_GETPWNAM("nobody"); SAFE_MKDIR(TEST_FILE, MODE2); memset(long_name, 'a', PATH_MAX+1); SAFE_TOUCH("file1", MODE1, NULL); SAFE_MKDIR("dir6", MODE2); SAFE_SYMLINK(TEST7_FILE, "test_file_eloop2"); SAFE_SYMLINK("test_file_eloop2", TEST7_FILE); SAFE_MKFS(tst_device->dev, tst_device->fs_type, NULL, NULL); SAFE_MKDIR("mntpoint", 0777); SAFE_MOUNT(tst_device->dev, "mntpoint", tst_device->fs_type, MS_RDONLY, NULL); mount_flag = 1; }
static void setup(void) { SAFE_MKFS(tst_device->dev, tst_device->fs_type, NULL, NULL); SAFE_MKDIR(MNTPOINT, 0775); }