• Home
  • Raw
  • Download

Lines Matching refs:retval

35 	errcode_t retval;  in follow_link()  local
44 retval = ext2fs_read_inode (fs, inode, &ei); in follow_link()
45 if (retval) return retval; in follow_link()
56 retval = ext2fs_get_memzero(ei.i_size, &buffer); in follow_link()
57 if (retval) in follow_link()
58 return retval; in follow_link()
60 retval = ext2fs_inline_data_get(fs, inode, in follow_link()
62 if (retval) { in follow_link()
64 return retval; in follow_link()
68 retval = ext2fs_bmap2(fs, inode, &ei, NULL, 0, 0, NULL, &blk); in follow_link()
69 if (retval) in follow_link()
70 return retval; in follow_link()
72 retval = ext2fs_get_mem(fs->blocksize, &buffer); in follow_link()
73 if (retval) in follow_link()
74 return retval; in follow_link()
76 retval = io_channel_read_blk64(fs->io, blk, 1, buffer); in follow_link()
77 if (retval) { in follow_link()
79 return retval; in follow_link()
84 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1, in follow_link()
88 return retval; in follow_link()
107 errcode_t retval; in dir_namei() local
123 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode); in dir_namei()
124 if (retval) return retval; in dir_namei()
125 retval = follow_link (fs, root, dir, inode, in dir_namei()
127 if (retval) return retval; in dir_namei()
142 errcode_t retval; in open_namei() local
148 retval = dir_namei(fs, root, base, pathname, pathlen, in open_namei()
150 if (retval) return retval; in open_namei()
155 retval = ext2fs_lookup (fs, dir, base_name, namelen, buf, &inode); in open_namei()
156 if (retval) in open_namei()
157 return retval; in open_namei()
159 retval = follow_link(fs, root, dir, inode, link_count, in open_namei()
161 if (retval) in open_namei()
162 return retval; in open_namei()
176 errcode_t retval; in ext2fs_namei() local
180 retval = ext2fs_get_mem(fs->blocksize, &buf); in ext2fs_namei()
181 if (retval) in ext2fs_namei()
182 return retval; in ext2fs_namei()
184 retval = open_namei(fs, root, cwd, name, strlen(name), 0, 0, in ext2fs_namei()
188 return retval; in ext2fs_namei()
195 errcode_t retval; in ext2fs_namei_follow() local
199 retval = ext2fs_get_mem(fs->blocksize, &buf); in ext2fs_namei_follow()
200 if (retval) in ext2fs_namei_follow()
201 return retval; in ext2fs_namei_follow()
203 retval = open_namei(fs, root, cwd, name, strlen(name), 1, 0, in ext2fs_namei_follow()
207 return retval; in ext2fs_namei_follow()
214 errcode_t retval; in ext2fs_follow_link() local
218 retval = ext2fs_get_mem(fs->blocksize, &buf); in ext2fs_follow_link()
219 if (retval) in ext2fs_follow_link()
220 return retval; in ext2fs_follow_link()
222 retval = follow_link(fs, root, cwd, inode, 0, buf, res_inode); in ext2fs_follow_link()
225 return retval; in ext2fs_follow_link()