Lines Matching defs:dir
94 * Try to get maximum number of hard links to a regular file inside the @dir.
96 * Note: This number depends on the filesystem @dir is on.
101 * If limit is hit maximal number of hardlinks is returned and the @dir is
109 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir);
114 * Note: This number depends on the filesystem @dir is on.
116 * The code uses mkdir(2) to create directories in @dir until it gets EMLINK
120 * @dir is filled with subdirectories in format "testdir%i" where i belongs to
121 * [0, limit - 2) interval (because each newly created dir has two links
122 * already the '.' and link from parent dir).
128 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir);
228 static inline int tst_fs_fill_hardlinks(const char *dir)
230 return tst_fs_fill_hardlinks_(NULL, dir);
233 static inline int tst_fs_fill_subdirs(const char *dir)
235 return tst_fs_fill_subdirs_(NULL, dir);
254 static inline int tst_fs_fill_hardlinks(void (*cleanup)(void), const char *dir)
256 return tst_fs_fill_hardlinks_(cleanup, dir);
259 static inline int tst_fs_fill_subdirs(void (*cleanup)(void), const char *dir)
261 return tst_fs_fill_subdirs_(cleanup, dir);