Lines Matching refs:fs
24 static errcode_t open_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t base,
28 static errcode_t follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
43 retval = ext2fs_read_inode (fs, inode, &ei);
52 if (ext2fs_inode_data_blocks(fs,&ei)) {
53 retval = ext2fs_bmap2(fs, inode, &ei, NULL, 0, 0, NULL, &blk);
57 retval = ext2fs_get_mem(fs->blocksize, &buffer);
61 retval = io_channel_read_blk64(fs->io, blk, 1, buffer);
69 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1,
82 static errcode_t dir_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t dir,
108 retval = ext2fs_lookup (fs, dir, thisname, len, buf, &inode);
110 retval = follow_link (fs, root, dir, inode,
120 static errcode_t open_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t base,
133 retval = dir_namei(fs, root, base, pathname, pathlen,
140 retval = ext2fs_lookup (fs, dir, base_name, namelen, buf, &inode);
144 retval = follow_link(fs, root, dir, inode, link_count,
157 errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
163 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
165 retval = ext2fs_get_mem(fs->blocksize, &buf);
169 retval = open_namei(fs, root, cwd, name, strlen(name), 0, 0,
176 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
182 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
184 retval = ext2fs_get_mem(fs->blocksize, &buf);
188 retval = open_namei(fs, root, cwd, name, strlen(name), 1, 0,
195 errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
201 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
203 retval = ext2fs_get_mem(fs->blocksize, &buf);
207 retval = follow_link(fs, root, cwd, inode, 0, buf, res_inode);