Lines Matching refs:gp
46 struct get_pathname_struct *gp; in get_pathname_proc() local
49 gp = (struct get_pathname_struct *) priv_data; in get_pathname_proc()
53 gp->parent = dirent->inode; in get_pathname_proc()
54 if (dirent->inode == gp->search_ino) { in get_pathname_proc()
56 &gp->name); in get_pathname_proc()
58 gp->errcode = retval; in get_pathname_proc()
61 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF)); in get_pathname_proc()
62 gp->name[dirent->name_len & 0xFF] = '\0'; in get_pathname_proc()
72 struct get_pathname_struct gp; in ext2fs_get_pathname_int() local
92 gp.search_ino = ino; in ext2fs_get_pathname_int()
93 gp.parent = 0; in ext2fs_get_pathname_int()
94 gp.name = 0; in ext2fs_get_pathname_int()
95 gp.errcode = 0; in ext2fs_get_pathname_int()
97 retval = ext2fs_dir_iterate(fs, dir, 0, buf, get_pathname_proc, &gp); in ext2fs_get_pathname_int()
100 if (gp.errcode) { in ext2fs_get_pathname_int()
101 retval = gp.errcode; in ext2fs_get_pathname_int()
105 retval = ext2fs_get_pathname_int(fs, gp.parent, dir, maxdepth-1, in ext2fs_get_pathname_int()
114 if (gp.name) in ext2fs_get_pathname_int()
115 retval = ext2fs_get_mem(strlen(parent_name)+strlen(gp.name)+2, in ext2fs_get_pathname_int()
126 if (gp.name) in ext2fs_get_pathname_int()
127 strcat(ret, gp.name); in ext2fs_get_pathname_int()
135 if (gp.name) in ext2fs_get_pathname_int()
136 ext2fs_free_mem(&gp.name); in ext2fs_get_pathname_int()