Changeset f0ceb1d in mainline


Ignore:
Timestamp:
2011-03-08T19:37:20Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4727a97a
Parents:
56df02f
Message:

make_root_ino() should be called in main()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkminix/mkminix.c

    r56df02f rf0ceb1d  
    240240        init_inode_table(&sb);
    241241
     242        /*Make the root inode*/
     243        if (sb.fs_version == 3)
     244                make_root_ino3(&sb);           
     245        else
     246                make_root_ino(&sb);
     247
    242248        /*Insert directory entries . and ..*/
    243249        insert_dentries(&sb);
     
    254260       
    255261        if (sb->fs_version != 3) {
    256                 /*Directories entry for V1/V2 filesystem*/
     262                /*Directory entries for V1/V2 filesystem*/
    257263                struct mfs_dentry *dentry = root_block;
    258264
     
    265271                str_cpy(dentry->d_name, 2, "..");
    266272        } else {
    267                 /*Directories entry for V3 filesystem*/
     273                /*Directory entries for V3 filesystem*/
    268274                struct mfs3_dentry *dentry = root_block;
    269275
     
    297303
    298304        free(itable_buf);
    299 
    300         /*Make the root inode*/
    301         if (sb->fs_version != 3)
    302                 make_root_ino(sb);             
    303         else
    304                 make_root_ino3(sb);
    305305}
    306306
Note: See TracChangeset for help on using the changeset viewer.