Lines Matching defs:dir
43 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir)
49 if (stat(dir, &s) == -1 && errno == ENOENT)
50 SAFE_MKDIR(cleanup, dir, 0744);
52 SAFE_STAT(cleanup, dir, &s);
54 tst_brkm(TBROK, cleanup, "%s is not directory", dir);
58 sprintf(base_filename, "%s/testfile0", dir);
62 sprintf(link_filename, "%s/testfile%d", dir, i);
99 sprintf(link_filename, "%s/testfile%d", dir, j);
106 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir)
113 if (stat(dir, &s) == -1 && errno == ENOENT)
114 SAFE_MKDIR(cleanup, dir, 0744);
116 SAFE_STAT(cleanup, dir, &s);
118 tst_brkm(TBROK, cleanup, "%s is not directory", dir);
123 fs_type = tst_fs_type(cleanup, dir);
137 sprintf(dirname, "%s/testdir%d", dir, i);
144 SAFE_STAT(cleanup, dir, &s);
147 * created directory (the '.' and link from parent dir)
151 dir, (int)s.st_nlink, i + 2);
155 "%s is hit: %d", dir, (int)s.st_nlink);
177 sprintf(dirname, "%s/testdir%d", dir, j);