Changeset 1e48a07e in mainline


Ignore:
Timestamp:
2011-11-27T12:53:06Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ebcaff4
Parents:
d4d2954
Message:

bad on-disk links count fixed for directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    rd4d2954 r1e48a07e  
    463463        lnk_count--;
    464464
    465 
    466465        // If directory - handle links from parent
    467466        if (lnk_count <= 1 && ext4fs_is_directory(cfn)) {
     467
     468                assert(lnk_count == 1);
     469                lnk_count--;
     470
    468471                ext4_inode_ref_t *parent_inode_ref = EXT4FS_NODE(pfn)->inode_ref;
    469472
    470                 EXT4FS_DBG("parent index = \%u", parent_inode_ref->index);
     473//              EXT4FS_DBG("parent index = \%u", parent_inode_ref->index);
    471474
    472475                uint32_t parent_lnk_count = ext4_inode_get_links_count(
Note: See TracChangeset for help on using the changeset viewer.