Changes in uspace/srv/fs/mfs/mfs_dentry.c [64e63ce1:1d6dd2a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_dentry.c
r64e63ce1 r1d6dd2a 31 31 */ 32 32 33 #include <str.h> 33 34 #include "mfs.h" 34 35 … … 40 41 * @param index index of the dentry in the list. 41 42 * 42 * @return EOK on success or a negativeerror code.43 */ 44 int43 * @return EOK on success or an error code. 44 */ 45 errno_t 45 46 mfs_read_dentry(struct mfs_node *mnode, 46 47 struct mfs_dentry_info *d_info, unsigned index) … … 52 53 block_t *b; 53 54 54 int r = mfs_read_map(&block, mnode, index * sbi->dirsize);55 errno_t r = mfs_read_map(&block, mnode, index * sbi->dirsize); 55 56 if (r != EOK) 56 57 goto out_err; … … 103 104 * @param d_info The directory entry to write to disk. 104 105 * 105 * @return EOK on success or a negativeerror code.106 */ 107 int106 * @return EOK on success or an error code. 107 */ 108 errno_t 108 109 mfs_write_dentry(struct mfs_dentry_info *d_info) 109 110 { … … 114 115 block_t *b; 115 116 uint32_t block; 116 int r;117 errno_t r; 117 118 118 119 r = mfs_read_map(&block, mnode, d_off_bytes); … … 154 155 * @param d_name Name of the directory entry to delete. 155 156 * 156 * @return EOK on success or a negativeerror code.157 */ 158 int157 * @return EOK on success or an error code. 158 */ 159 errno_t 159 160 mfs_remove_dentry(struct mfs_node *mnode, const char *d_name) 160 161 { 161 162 struct mfs_sb_info *sbi = mnode->instance->sbi; 162 163 struct mfs_dentry_info d_info; 163 int r;164 errno_t r; 164 165 165 166 const size_t name_len = str_size(d_name); … … 195 196 * @param d_inum index of the inode that will be pointed by the new dentry. 196 197 * 197 * @return EOK on success or a negativeerror code.198 */ 199 int198 * @return EOK on success or an error code. 199 */ 200 errno_t 200 201 mfs_insert_dentry(struct mfs_node *mnode, const char *d_name, 201 202 fs_index_t d_inum) 202 203 { 203 int r;204 errno_t r; 204 205 struct mfs_sb_info *sbi = mnode->instance->sbi; 205 206 struct mfs_dentry_info d_info;
Note:
See TracChangeset
for help on using the changeset viewer.