Changes in uspace/srv/fs/mfs/mfs_inode.c [b7fd2a0:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_inode.c
rb7fd2a0 r9d58539 34 34 #include "mfs.h" 35 35 36 static errno_t36 static int 37 37 mfs_write_inode_raw(struct mfs_node *mnode); 38 38 39 static errno_t39 static int 40 40 mfs2_write_inode_raw(struct mfs_node *mnode); 41 41 42 static errno_t42 static int 43 43 mfs_read_inode_raw(const struct mfs_instance *instance, 44 44 struct mfs_ino_info **ino_ptr, uint16_t inum); 45 45 46 static errno_t46 static int 47 47 mfs2_read_inode_raw(const struct mfs_instance *instance, 48 48 struct mfs_ino_info **ino_ptr, uint32_t inum); … … 55 55 * @param index index of the inode to read. 56 56 * 57 * @return EOK on success or a nerror code.58 */ 59 errno_t57 * @return EOK on success or a negative error code. 58 */ 59 int 60 60 mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i, 61 61 fs_index_t index) 62 62 { 63 63 struct mfs_sb_info *sbi = inst->sbi; 64 errno_t r;64 int r; 65 65 66 66 if (sbi->fs_version == MFS_VERSION_V1) { … … 75 75 } 76 76 77 static errno_t77 static int 78 78 mfs_read_inode_raw(const struct mfs_instance *instance, 79 79 struct mfs_ino_info **ino_ptr, uint16_t inum) … … 83 83 struct mfs_sb_info *sbi; 84 84 block_t *b; 85 int i; 86 errno_t r; 85 int i, r; 87 86 88 87 sbi = instance->sbi; … … 135 134 } 136 135 137 static errno_t136 static int 138 137 mfs2_read_inode_raw(const struct mfs_instance *instance, 139 138 struct mfs_ino_info **ino_ptr, uint32_t inum) … … 143 142 struct mfs_sb_info *sbi; 144 143 block_t *b; 145 int i; 146 errno_t r; 144 int i, r; 147 145 148 146 ino_i = malloc(sizeof(*ino_i)); … … 201 199 * @param mnode Pointer to the generic MINIX inode in memory. 202 200 * 203 * @return EOK on success or a nerror code.204 */ 205 errno_t201 * @return EOK on success or a negative error code. 202 */ 203 int 206 204 mfs_put_inode(struct mfs_node *mnode) 207 205 { 208 errno_t rc = EOK;206 int rc = EOK; 209 207 210 208 if (!mnode->ino_i->dirty) … … 223 221 } 224 222 225 static errno_t223 static int 226 224 mfs_write_inode_raw(struct mfs_node *mnode) 227 225 { 228 int i; 229 errno_t r; 226 int i, r; 230 227 block_t *b; 231 228 struct mfs_ino_info *ino_i = mnode->ino_i; … … 267 264 } 268 265 269 static errno_t266 static int 270 267 mfs2_write_inode_raw(struct mfs_node *mnode) 271 268 { … … 273 270 struct mfs_sb_info *sbi = mnode->instance->sbi; 274 271 block_t *b; 275 int i; 276 errno_t r; 272 int i, r; 277 273 278 274 const uint32_t inum = ino_i->index - 1; … … 319 315 * @param size_shrink Number of bytes that will be subtracted to the inode. 320 316 * 321 * @return EOK on success or a nerror code.322 */ 323 errno_t317 * @return EOK on success or a negative error code. 318 */ 319 int 324 320 mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink) 325 321 { … … 327 323 struct mfs_ino_info *ino_i = mnode->ino_i; 328 324 const size_t bs = sbi->block_size; 329 errno_t r;325 int r; 330 326 331 327 if (size_shrink == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.