Changes in uspace/srv/fs/mfs/mfs_inode.c [9d58539:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_inode.c
r9d58539 rb7fd2a0 34 34 #include "mfs.h" 35 35 36 static int36 static errno_t 37 37 mfs_write_inode_raw(struct mfs_node *mnode); 38 38 39 static int39 static errno_t 40 40 mfs2_write_inode_raw(struct mfs_node *mnode); 41 41 42 static int42 static errno_t 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 int46 static errno_t 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 negativeerror code.58 */ 59 int57 * @return EOK on success or an error code. 58 */ 59 errno_t 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 int r;64 errno_t r; 65 65 66 66 if (sbi->fs_version == MFS_VERSION_V1) { … … 75 75 } 76 76 77 static int77 static errno_t 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, r; 85 int i; 86 errno_t r; 86 87 87 88 sbi = instance->sbi; … … 134 135 } 135 136 136 static int137 static errno_t 137 138 mfs2_read_inode_raw(const struct mfs_instance *instance, 138 139 struct mfs_ino_info **ino_ptr, uint32_t inum) … … 142 143 struct mfs_sb_info *sbi; 143 144 block_t *b; 144 int i, r; 145 int i; 146 errno_t r; 145 147 146 148 ino_i = malloc(sizeof(*ino_i)); … … 199 201 * @param mnode Pointer to the generic MINIX inode in memory. 200 202 * 201 * @return EOK on success or a negativeerror code.202 */ 203 int203 * @return EOK on success or an error code. 204 */ 205 errno_t 204 206 mfs_put_inode(struct mfs_node *mnode) 205 207 { 206 int rc = EOK;208 errno_t rc = EOK; 207 209 208 210 if (!mnode->ino_i->dirty) … … 221 223 } 222 224 223 static int225 static errno_t 224 226 mfs_write_inode_raw(struct mfs_node *mnode) 225 227 { 226 int i, r; 228 int i; 229 errno_t r; 227 230 block_t *b; 228 231 struct mfs_ino_info *ino_i = mnode->ino_i; … … 264 267 } 265 268 266 static int269 static errno_t 267 270 mfs2_write_inode_raw(struct mfs_node *mnode) 268 271 { … … 270 273 struct mfs_sb_info *sbi = mnode->instance->sbi; 271 274 block_t *b; 272 int i, r; 275 int i; 276 errno_t r; 273 277 274 278 const uint32_t inum = ino_i->index - 1; … … 315 319 * @param size_shrink Number of bytes that will be subtracted to the inode. 316 320 * 317 * @return EOK on success or a negativeerror code.318 */ 319 int321 * @return EOK on success or an error code. 322 */ 323 errno_t 320 324 mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink) 321 325 { … … 323 327 struct mfs_ino_info *ino_i = mnode->ino_i; 324 328 const size_t bs = sbi->block_size; 325 int r;329 errno_t r; 326 330 327 331 if (size_shrink == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.