Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5987f917 in mainline


Ignore:
Timestamp:
2011-09-06T08:15:18Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
a4726cb
Parents:
e03d545
Message:

fix bug when writing in the double indirect zone

File:
1 edited

Legend:

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

    re03d545 r5987f917  
    213213                goto out_free_ind1;
    214214
    215         *b = ind2_zone[ind2_off % ptrs_per_block];
     215        *b = ind2_zone[rblock - (ind2_off * ptrs_per_block)];
    216216        if (write_mode) {
    217                 ind2_zone[ind2_off % ptrs_per_block] = w_block;
     217                ind2_zone[rblock - (ind2_off * ptrs_per_block)] = w_block;
    218218                write_ind_zone(inst, ind_zone[ind2_off], ind2_zone);
    219219        }
Note: See TracChangeset for help on using the changeset viewer.