Changeset 04be5a0 in mainline for uspace/srv/fs/minixfs/mfs_ops.c


Ignore:
Timestamp:
2011-04-07T19:47:37Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
07dcec5
Parents:
f9329cf
Message:

Remove wrong assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_ops.c

    rf9329cf r04be5a0  
    459459{
    460460        struct mfs_node *mnode = fsnode->data;
    461         const struct mfs_ino_info *ino_i = mnode->ino_i;
    462         const struct mfs_instance *inst = mnode->instance;
    463         const struct mfs_sb_info *sbi = inst->sbi;
    464         uint32_t n_dentries = 0;
    465461
    466462        *has_children = false;
     
    470466
    471467        struct mfs_dentry_info *d_info;
    472         n_dentries =  ino_i->i_size / sbi->dirsize;
    473468       
    474469        /* The first two dentries are always . and .. */
    475         assert(n_dentries >= 2);
    476 
    477         if (n_dentries == 2)
    478                 goto out;
    479 
    480470        int i = 2;
    481471        while (1) {
     
    498488
    499489out:
    500 
    501         if (n_dentries > 2 && !*has_children)
    502                 printf(NAME ": Filesystem corruption detected\n");
    503490
    504491        if (*has_children)
Note: See TracChangeset for help on using the changeset viewer.