Lines Matching defs:dir
14 * ext2fs_get_pathname(fs, dir, ino, name)
17 * string, placing the result in <name>. <dir> is the containing
20 * of the the directory <dir>.
71 static errcode_t ext2fs_get_pathname_int(ext2_filsys fs, ext2_ino_t dir,
79 if (dir == ino) {
83 strcpy(*name, (dir == EXT2_ROOT_INO) ? "/" : ".");
87 if (!dir || (maxdepth < 0)) {
100 retval = ext2fs_dir_iterate(fs, dir, 0, buf, get_pathname_proc, &gp);
105 snprintf(tmp, sizeof(tmp), "<%u>/<%u>", dir, ino);
107 snprintf(tmp, sizeof(tmp), "<%u>", dir);
120 retval = ext2fs_get_pathname_int(fs, gp.parent, dir, maxdepth-1,
154 errcode_t ext2fs_get_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino,
165 if (dir == ino)
167 retval = ext2fs_get_pathname_int(fs, dir, ino, 32, buf, name);