Changes in uspace/srv/fs/mfs/mfs_rw.c [b7fd2a0:95027b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_rw.c
rb7fd2a0 r95027b5 34 34 #include "mfs.h" 35 35 36 static errno_t36 static int 37 37 rw_map_ondisk(uint32_t *b, const struct mfs_node *mnode, int rblock, 38 38 bool write_mode, uint32_t w_block); 39 39 40 static errno_t40 static int 41 41 reset_zone_content(struct mfs_instance *inst, uint32_t zone); 42 42 43 static errno_t43 static int 44 44 alloc_zone_and_clear(struct mfs_instance *inst, uint32_t *zone); 45 45 46 static errno_t46 static int 47 47 read_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t **ind_zone); 48 48 49 static errno_t49 static int 50 50 write_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t *ind_zone); 51 51 … … 59 59 * @param pos Position in file. 60 60 * 61 * @return EOK on success or a nerror code.61 * @return EOK on success or a negative error code. 62 62 */ 63 errno_t63 int 64 64 mfs_read_map(uint32_t *b, const struct mfs_node *mnode, uint32_t pos) 65 65 { 66 errno_t r;66 int r; 67 67 const struct mfs_sb_info *sbi = mnode->instance->sbi; 68 68 const int block_size = sbi->block_size; … … 83 83 } 84 84 85 errno_t85 int 86 86 mfs_write_map(struct mfs_node *mnode, const uint32_t pos, uint32_t new_zone, 87 87 uint32_t *old_zone) … … 100 100 } 101 101 102 static errno_t102 static int 103 103 rw_map_ondisk(uint32_t *b, const struct mfs_node *mnode, int rblock, 104 104 bool write_mode, uint32_t w_block) … … 107 107 int ptrs_per_block; 108 108 uint32_t *ind_zone = NULL, *ind2_zone = NULL; 109 errno_t r = EOK;109 int r = EOK; 110 110 111 111 struct mfs_ino_info *ino_i = mnode->ino_i; … … 236 236 * @param new_size The new size of the inode. 237 237 * 238 * @return EOK on success or a nerror code.238 * @return EOK on success or a negative error code. 239 239 */ 240 errno_t240 int 241 241 mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size) 242 242 { … … 244 244 struct mfs_sb_info *sbi = inst->sbi; 245 245 struct mfs_ino_info *ino_i = mnode->ino_i; 246 int nr_direct, ptrs_per_block, rblock; 247 errno_t r; 246 int nr_direct, ptrs_per_block, rblock, r; 248 247 int i; 249 248 … … 312 311 } 313 312 314 static errno_t313 static int 315 314 reset_zone_content(struct mfs_instance *inst, uint32_t zone) 316 315 { 317 316 block_t *b; 318 errno_t r;317 int r; 319 318 320 319 r = block_get(&b, inst->service_id, zone, BLOCK_FLAGS_NOREAD); … … 328 327 } 329 328 330 static errno_t329 static int 331 330 alloc_zone_and_clear(struct mfs_instance *inst, uint32_t *zone) 332 331 { 333 errno_t r;332 int r; 334 333 335 334 r = mfs_alloc_zone(inst, zone); … … 341 340 } 342 341 343 static errno_t342 static int 344 343 read_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t **ind_zone) 345 344 { 346 345 struct mfs_sb_info *sbi = inst->sbi; 347 errno_t r;346 int r; 348 347 unsigned i; 349 348 block_t *b; … … 376 375 } 377 376 378 static errno_t377 static int 379 378 write_ind_zone(struct mfs_instance *inst, uint32_t zone, uint32_t *ind_zone) 380 379 { 381 380 struct mfs_sb_info *sbi = inst->sbi; 382 errno_t r;381 int r; 383 382 unsigned i; 384 383 block_t *b;
Note:
See TracChangeset
for help on using the changeset viewer.