Changeset bed0356 in mainline


Ignore:
Timestamp:
2011-03-29T20:01:59Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b438804
Parents:
eea1dd5
Message:

Fix V2 root inode initialization

  • V2 inode is the same of V3 filesystem, it has nothing to do with V1 inodes.
File:
1 edited

Legend:

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

    reea1dd5 rbed0356  
    9191static int      init_inode_table(const struct mfs_sb_info *sb);
    9292static int      make_root_ino(const struct mfs_sb_info *sb);
    93 static int      make_root_ino3(const struct mfs_sb_info *sb);
     93static int      make_root_ino2(const struct mfs_sb_info *sb);
    9494static void     mark_bmap(uint32_t *bmap, int idx, int v);
    9595static int      insert_dentries(const struct mfs_sb_info *sb);
     
    264264
    265265        /*Make the root inode*/
    266         if (sb.fs_version == 3)
    267                 rc = make_root_ino3(&sb);               
     266        if (sb.fs_version == 1)
     267                rc = make_root_ino(&sb);
    268268        else
    269                 rc = make_root_ino(&sb);
     269                rc = make_root_ino2(&sb);
    270270
    271271        if (rc != EOK) {
     
    387387}
    388388
    389 static int make_root_ino3(const struct mfs_sb_info *sb)
     389/*Initialize a Minix V2 root inode on disk, also valid for V3 filesystem*/
     390static int make_root_ino2(const struct mfs_sb_info *sb)
    390391{
    391392        struct mfs2_inode *ino_buf;
Note: See TracChangeset for help on using the changeset viewer.