Changeset e33100c in mainline for uspace/srv/fs/minixfs/mfs_inode.c


Ignore:
Timestamp:
2011-04-09T12:58:38Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e666ddc
Parents:
534d08e8
Message:

The root inode (index == 1) is at offset 0 in the inode table.

File:
1 edited

Legend:

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

    r534d08e8 re33100c  
    8282        sbi = instance->sbi;
    8383        assert(sbi);
    84        
     84
     85        /*inode 0 does not exist*/
     86        inum -= 1;
     87
    8588        const int ino_off = inum % sbi->ino_per_block;
    8689        const size_t ino_size = sizeof(struct mfs_inode);
     
    146149        sbi = instance->sbi;
    147150        assert(sbi);
     151
     152        /*inode 0 does not exist*/
     153        inum -= 1;
    148154
    149155        const int itable_off = sbi->itable_off;
Note: See TracChangeset for help on using the changeset viewer.