Changeset af8ce880 in mainline


Ignore:
Timestamp:
2011-04-05T17:11:50Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2bbbfd3
Parents:
8829e33
Message:

Change wrong name to the di_block variable (new name is ind2_block)

File:
1 edited

Legend:

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

    r8829e33 raf8ce880  
    191191         *zone pointer in the chain.
    192192         */
    193         uint32_t di_block = rblock / ptrs_per_block;
     193        uint32_t ind2_block = rblock / ptrs_per_block;
    194194
    195195        /*read the second indirect zone of the chain*/
    196196        if (fs_version == MFS_VERSION_V1) {
    197197                uint16_t *pt16 = bi1->data;
    198                 uint16_t blk = conv16(sbi->native, pt16[di_block]);
     198                uint16_t blk = conv16(sbi->native, pt16[ind2_block]);
    199199
    200200                if (blk == 0) {
     
    206206
    207207                                blk = block;
    208                                 pt16[di_block] = conv16(sbi->native, blk);
     208                                pt16[ind2_block] = conv16(sbi->native, blk);
    209209                                bi1->dirty = true;
    210210                        } else {
     
    220220
    221221                pt16 = bi2->data;
    222                 pt16 += di_block % ptrs_per_block;
     222                pt16 += ind2_block % ptrs_per_block;
    223223                *b = conv16(sbi->native, *pt16);
    224224                if (write_mode) {
     
    228228        } else {
    229229                uint32_t *pt32 = bi1->data;
    230                 uint32_t blk = conv32(sbi->native, pt32[di_block]);
     230                uint32_t blk = conv32(sbi->native, pt32[ind2_block]);
    231231
    232232                if (blk == 0) {
     
    238238
    239239                                blk = block;
    240                                 pt32[di_block] = conv32(sbi->native, blk);
     240                                pt32[ind2_block] = conv32(sbi->native, blk);
    241241                                bi1->dirty = true;
    242242                        } else {
     
    252252
    253253                pt32 = bi2->data;
    254                 pt32 += di_block % ptrs_per_block;
     254                pt32 += ind2_block % ptrs_per_block;
    255255                *b = conv32(sbi->native, *pt32);
    256256                if (write_mode) {
Note: See TracChangeset for help on using the changeset viewer.