Lines Matching refs:cleanup
106 static void cleanup(void);
127 cleanup(); in main()
145 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
150 device = tst_acquire_device(cleanup); in setup()
153 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
157 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup()
159 SAFE_TOUCH(cleanup, TESTFILE2, FILEMODE, NULL); in setup()
165 SAFE_MKDIR(cleanup, TESTDIR, DIRMODE); in setup()
166 SAFE_TOUCH(cleanup, TESTFILE3, FILEMODE, NULL); in setup()
167 SAFE_MKDIR(cleanup, NEW_TESTDIR, DIRMODE); in setup()
169 olddirfd = SAFE_OPEN(cleanup, TESTDIR, O_DIRECTORY); in setup()
170 newdirfd = SAFE_OPEN(cleanup, NEW_TESTDIR, O_DIRECTORY); in setup()
172 filefd = SAFE_OPEN(cleanup, TESTFILE4, in setup()
180 SAFE_MKDIR(cleanup, "loopdir", DIRMODE); in setup()
181 SAFE_SYMLINK(cleanup, "../loopdir", "loopdir/loopdir"); in setup()
185 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
186 SAFE_MKDIR(cleanup, MNTPOINT, DIRMODE); in setup()
187 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
189 SAFE_TOUCH(cleanup, TESTFILE5, FILEMODE, NULL); in setup()
190 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in setup()
193 SAFE_MKDIR(cleanup, TESTDIR3, DIRMODE); in setup()
194 max_subdirs = tst_fs_fill_subdirs(cleanup, "testemlinkdir"); in setup()
229 tst_brkm(TBROK | TERRNO, cleanup, "renameat(%d, %s, " in renameat_verify()
235 static void cleanup(void) in cleanup() function