Lines Matching full:gp
50 struct get_pathname_struct *gp; in get_pathname_proc() local
54 gp = (struct get_pathname_struct *) priv_data; in get_pathname_proc()
57 gp->parent = dirent->inode; in get_pathname_proc()
58 if (dirent->inode == gp->search_ino) { in get_pathname_proc()
59 retval = ext2fs_get_mem(name_len + 1, &gp->name); in get_pathname_proc()
61 gp->errcode = retval; in get_pathname_proc()
64 strncpy(gp->name, dirent->name, name_len); in get_pathname_proc()
65 gp->name[name_len] = '\0'; in get_pathname_proc()
75 struct get_pathname_struct gp; in ext2fs_get_pathname_int() local
95 gp.search_ino = ino; in ext2fs_get_pathname_int()
96 gp.parent = 0; in ext2fs_get_pathname_int()
97 gp.name = 0; in ext2fs_get_pathname_int()
98 gp.errcode = 0; in ext2fs_get_pathname_int()
100 retval = ext2fs_dir_iterate(fs, dir, 0, buf, get_pathname_proc, &gp); in ext2fs_get_pathname_int()
115 if (gp.errcode) { in ext2fs_get_pathname_int()
116 retval = gp.errcode; in ext2fs_get_pathname_int()
120 retval = ext2fs_get_pathname_int(fs, gp.parent, dir, maxdepth-1, in ext2fs_get_pathname_int()
129 if (gp.name) in ext2fs_get_pathname_int()
130 retval = ext2fs_get_mem(strlen(parent_name)+strlen(gp.name)+2, in ext2fs_get_pathname_int()
141 if (gp.name) in ext2fs_get_pathname_int()
142 strcat(ret, gp.name); in ext2fs_get_pathname_int()
150 ext2fs_free_mem(&gp.name); in ext2fs_get_pathname_int()