Changes in uspace/srv/fs/mfs/mfs_dentry.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_dentry.c
rcde999a rb7fd2a0 42 42 * @return EOK on success or an error code. 43 43 */ 44 int44 errno_t 45 45 mfs_read_dentry(struct mfs_node *mnode, 46 46 struct mfs_dentry_info *d_info, unsigned index) … … 52 52 block_t *b; 53 53 54 int r = mfs_read_map(&block, mnode, index * sbi->dirsize);54 errno_t r = mfs_read_map(&block, mnode, index * sbi->dirsize); 55 55 if (r != EOK) 56 56 goto out_err; … … 105 105 * @return EOK on success or an error code. 106 106 */ 107 int107 errno_t 108 108 mfs_write_dentry(struct mfs_dentry_info *d_info) 109 109 { … … 114 114 block_t *b; 115 115 uint32_t block; 116 int r;116 errno_t r; 117 117 118 118 r = mfs_read_map(&block, mnode, d_off_bytes); … … 156 156 * @return EOK on success or an error code. 157 157 */ 158 int158 errno_t 159 159 mfs_remove_dentry(struct mfs_node *mnode, const char *d_name) 160 160 { 161 161 struct mfs_sb_info *sbi = mnode->instance->sbi; 162 162 struct mfs_dentry_info d_info; 163 int r;163 errno_t r; 164 164 165 165 const size_t name_len = str_size(d_name); … … 197 197 * @return EOK on success or an error code. 198 198 */ 199 int199 errno_t 200 200 mfs_insert_dentry(struct mfs_node *mnode, const char *d_name, 201 201 fs_index_t d_inum) 202 202 { 203 int r;203 errno_t r; 204 204 struct mfs_sb_info *sbi = mnode->instance->sbi; 205 205 struct mfs_dentry_info d_info;
Note:
See TracChangeset
for help on using the changeset viewer.