Lines Matching refs:cleanup
60 static void cleanup(void);
85 cleanup(); in main()
93 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
102 device = tst_acquire_device(cleanup); in setup()
105 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
107 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
109 SAFE_MKDIR(cleanup, MNTPOINT, 0755); in setup()
110 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup()
112 SAFE_TOUCH(cleanup, TEST_EROFS, 0644, NULL); in setup()
114 SAFE_MKDIR(cleanup, TEST_EMLINK, 0755); in setup()
115 max_subdirs = tst_fs_fill_subdirs(cleanup, "emlink_dir"); in setup()
120 SAFE_MKDIR(cleanup, "test_eloop", 0644); in setup()
121 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop"); in setup()
147 SAFE_UNLINK(cleanup, TEST_NEW_ELOOP); in test_eloop()
152 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY, in test_erofs()
159 SAFE_UNLINK(cleanup, TEST_NEW_EROFS); in test_erofs()
161 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT, NULL); in test_erofs()
175 SAFE_RMDIR(cleanup, TEST_NEW_EMLINK); in test_emlink()
178 static void cleanup(void) in cleanup() function