Lines Matching refs:fs
23 static errcode_t open_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t base,
27 static errcode_t follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
41 retval = ext2fs_read_inode (fs, inode, &ei);
50 if (ext2fs_inode_data_blocks(fs,&ei)) {
51 retval = ext2fs_get_mem(fs->blocksize, &buffer);
54 retval = io_channel_read_blk(fs->io, ei.i_block[0], 1, buffer);
62 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1,
75 static errcode_t dir_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
101 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode);
103 retval = follow_link (fs, root, dir, inode,
113 static errcode_t open_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t base,
126 retval = dir_namei(fs, root, base, pathname, pathlen,
133 retval = ext2fs_lookup (fs, dir, base_name, namelen, buf, &inode);
137 retval = follow_link(fs, root, dir, inode, link_count,
150 errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
156 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
158 retval = ext2fs_get_mem(fs->blocksize, &buf);
162 retval = open_namei(fs, root, cwd, name, strlen(name), 0, 0,
169 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
175 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
177 retval = ext2fs_get_mem(fs->blocksize, &buf);
181 retval = open_namei(fs, root, cwd, name, strlen(name), 1, 0,
188 errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
194 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
196 retval = ext2fs_get_mem(fs->blocksize, &buf);
200 retval = follow_link(fs, root, cwd, inode, 0, buf, res_inode);