Changeset 64e63ce1 in mainline
- Timestamp:
- 2013-07-11T09:35:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ba6651
- Parents:
- 4c53333
- Location:
- uspace/srv/fs/mfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_balloc.c
r4c53333 r64e63ce1 202 202 start_block = 2; 203 203 nblocks = sbi->ibmap_blocks; 204 limit = sbi->ninodes ;204 limit = sbi->ninodes - 1; 205 205 } 206 206 bits_per_block = sbi->block_size * 8; -
uspace/srv/fs/mfs/mfs_dentry.c
r4c53333 r64e63ce1 240 240 goto out; 241 241 r = mfs_write_map(mnode, pos, b, &dummy); 242 if (r != EOK) 242 if (r != EOK) { 243 mfs_free_zone(mnode->instance, b); 243 244 goto out; 245 } 244 246 } 245 247 -
uspace/srv/fs/mfs/mfs_ops.c
r4c53333 r64e63ce1 419 419 free(ino_i); 420 420 out_err: 421 mfs_free_inode(inst, inum); 421 422 return r; 422 423 } … … 674 675 r = mfs_insert_dentry(child, "..", parent->ino_i->index); 675 676 if (r != EOK) { 677 mfs_remove_dentry(child, "."); 676 678 destroy_dentry = true; 677 679 goto exit; … … 925 927 926 928 r = mfs_write_map(mnode, pos, block, &dummy); 927 if (r != EOK) 929 if (r != EOK) { 930 mfs_free_zone(mnode->instance, block); 928 931 goto out_err; 932 } 929 933 930 934 flags = BLOCK_FLAGS_NOREAD;
Note:
See TracChangeset
for help on using the changeset viewer.