Changeset 5a841a4 in mainline


Ignore:
Timestamp:
2011-04-10T15:57:10Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
13ab195
Parents:
18c9e6b
Message:

Fix initialization of the "inodes per block" superblock field at mount

File:
1 edited

Legend:

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

    r18c9e6b r5a841a4  
    204204                sbi->log2_zone_size = conv16(native, sb->s_log2_zone_size);
    205205                sbi->max_file_size = conv32(native, sb->s_max_file_size);
    206                 sbi->nzones = conv16(native, sb->s_nzones);
    207206                sbi->block_size = MFS_BLOCKSIZE;
    208                 sbi->ino_per_block = V1_INODES_PER_BLOCK;
    209                 if (version == MFS_VERSION_V2)
     207                if (version == MFS_VERSION_V2) {
    210208                        sbi->nzones = conv32(native, sb->s_nzones2);
     209                        sbi->ino_per_block = V2_INODES_PER_BLOCK;
     210                } else {
     211                        sbi->nzones = conv16(native, sb->s_nzones);
     212                        sbi->ino_per_block = V1_INODES_PER_BLOCK;
     213                }
    211214                sbi->dirsize = longnames ? MFSL_DIRSIZE : MFS_DIRSIZE;
    212215                sbi->max_name_len = longnames ? MFS_L_MAX_NAME_LEN :
Note: See TracChangeset for help on using the changeset viewer.