Changes in uspace/srv/fs/mfs/mfs_inode.c [b7fd2a0:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_inode.c
rb7fd2a0 rcde999a 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); … … 57 57 * @return EOK on success or an error code. 58 58 */ 59 errno_t59 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) … … 84 84 block_t *b; 85 85 int i; 86 errno_t r;86 int r; 87 87 88 88 sbi = instance->sbi; … … 135 135 } 136 136 137 static errno_t137 static int 138 138 mfs2_read_inode_raw(const struct mfs_instance *instance, 139 139 struct mfs_ino_info **ino_ptr, uint32_t inum) … … 144 144 block_t *b; 145 145 int i; 146 errno_t r;146 int r; 147 147 148 148 ino_i = malloc(sizeof(*ino_i)); … … 203 203 * @return EOK on success or an error code. 204 204 */ 205 errno_t205 int 206 206 mfs_put_inode(struct mfs_node *mnode) 207 207 { 208 errno_t rc = EOK;208 int rc = EOK; 209 209 210 210 if (!mnode->ino_i->dirty) … … 223 223 } 224 224 225 static errno_t225 static int 226 226 mfs_write_inode_raw(struct mfs_node *mnode) 227 227 { 228 228 int i; 229 errno_t r;229 int r; 230 230 block_t *b; 231 231 struct mfs_ino_info *ino_i = mnode->ino_i; … … 267 267 } 268 268 269 static errno_t269 static int 270 270 mfs2_write_inode_raw(struct mfs_node *mnode) 271 271 { … … 274 274 block_t *b; 275 275 int i; 276 errno_t r;276 int r; 277 277 278 278 const uint32_t inum = ino_i->index - 1; … … 321 321 * @return EOK on success or an error code. 322 322 */ 323 errno_t323 int 324 324 mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink) 325 325 { … … 327 327 struct mfs_ino_info *ino_i = mnode->ino_i; 328 328 const size_t bs = sbi->block_size; 329 errno_t r;329 int r; 330 330 331 331 if (size_shrink == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.