Lines Matching refs:cleanup
43 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir) in tst_fs_fill_hardlinks_()
50 SAFE_MKDIR(cleanup, dir, 0744); in tst_fs_fill_hardlinks_()
52 SAFE_STAT(cleanup, dir, &s); in tst_fs_fill_hardlinks_()
54 tst_brkm(TBROK, cleanup, "%s is not directory", dir); in tst_fs_fill_hardlinks_()
59 SAFE_TOUCH(cleanup, base_filename, 0644, NULL); in tst_fs_fill_hardlinks_()
69 SAFE_STAT(cleanup, base_filename, &s); in tst_fs_fill_hardlinks_()
71 tst_brkm(TBROK, cleanup, "wrong number of " in tst_fs_fill_hardlinks_()
88 tst_brkm(TBROK, cleanup, "link(%s, %s) failed " in tst_fs_fill_hardlinks_()
100 SAFE_UNLINK(cleanup, link_filename); in tst_fs_fill_hardlinks_()
106 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir) in tst_fs_fill_subdirs_()
114 SAFE_MKDIR(cleanup, dir, 0744); in tst_fs_fill_subdirs_()
116 SAFE_STAT(cleanup, dir, &s); in tst_fs_fill_subdirs_()
118 tst_brkm(TBROK, cleanup, "%s is not directory", dir); in tst_fs_fill_subdirs_()
123 fs_type = tst_fs_type(cleanup, dir); in tst_fs_fill_subdirs_()
144 SAFE_STAT(cleanup, dir, &s); in tst_fs_fill_subdirs_()
150 tst_brkm(TBROK, cleanup, "%s link counts have %d, should be %d", in tst_fs_fill_subdirs_()
164 tst_brkm(TBROK, cleanup, "mkdir(%s, 0755) failed " in tst_fs_fill_subdirs_()
178 SAFE_RMDIR(cleanup, dirname); in tst_fs_fill_subdirs_()