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