Changeset b6d7b7c in mainline
- Timestamp:
- 2012-04-14T16:29:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1df3f57a
- Parents:
- 831507b
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory.c
r831507b rb6d7b7c 372 372 } 373 373 374 EXT4FS_DBG("loaded");375 376 374 // Fill block with zeroes 377 375 memset(new_block->data, 0, block_size); 378 376 ext4_directory_entry_ll_t *block_entry = new_block->data; 379 377 ext4_directory_write_entry(fs->superblock, block_entry, block_size, child, name, name_len); 380 381 EXT4FS_DBG("written");382 378 383 379 // Save new block … … 387 383 return rc; 388 384 } 389 390 EXT4FS_DBG("returning");391 385 392 386 return EOK; -
uspace/lib/ext4/libext4_extent.c
r831507b rb6d7b7c 769 769 } 770 770 771 uint32_t phys_block = 0;772 773 771 // Add new extent to the node 774 772 if (path_ptr->extent == NULL) { … … 779 777 uint16_t block_limit = (1 << 15); 780 778 779 uint32_t phys_block = 0; 781 780 if (block_count < block_limit) { 782 781 … … 791 790 ext4_extent_set_start(path_ptr->extent, phys_block); 792 791 ext4_extent_set_block_count(path_ptr->extent, 1); 792 793 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 794 inode_ref->dirty = true; 793 795 794 796 path_ptr->block->dirty = true; … … 813 815 814 816 ext4_extent_set_block_count(path_ptr->extent, block_count + 1); 817 818 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 819 inode_ref->dirty = true; 815 820 816 821 path_ptr->block->dirty = true; … … 840 845 ext4_extent_set_start(path_ptr->extent, phys_block); 841 846 847 ext4_inode_set_size(inode_ref->inode, inode_size + block_size); 848 inode_ref->dirty = true; 849 842 850 path_ptr->block->dirty = true; 843 851 -
uspace/lib/ext4/libext4_filesystem.c
r831507b rb6d7b7c 594 594 rc = ext4_extent_find_block(inode_ref, iblock, ¤t_block); 595 595 596 EXT4FS_DBG("ext: loading iblock \%u, address \%u", (uint32_t)iblock, current_block);597 598 596 if (rc != EOK) { 599 597 return rc; -
uspace/srv/fs/ext4fs/ext4fs_ops.c
r831507b rb6d7b7c 616 616 617 617 // Initialize directory index if necessary 618 //if (ext4_superblock_has_feature_compatible(619 //fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX)) {620 // 621 //rc = ext4_directory_dx_init(child->inode_ref);622 //if (rc != EOK) {623 //return rc;624 //}625 // 626 //ext4_inode_set_flag(child->inode_ref->inode, EXT4_INODE_FLAG_INDEX);627 //child->inode_ref->dirty = true;628 //}618 if (ext4_superblock_has_feature_compatible( 619 fs->superblock, EXT4_FEATURE_COMPAT_DIR_INDEX)) { 620 621 rc = ext4_directory_dx_init(child->inode_ref); 622 if (rc != EOK) { 623 return rc; 624 } 625 626 ext4_inode_set_flag(child->inode_ref->inode, EXT4_INODE_FLAG_INDEX); 627 child->inode_ref->dirty = true; 628 } 629 629 630 630 uint16_t parent_links = ext4_inode_get_links_count(parent->inode_ref->inode);
Note:
See TracChangeset
for help on using the changeset viewer.