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

Changeset 127d999 in mainline


Ignore:
Timestamp:
2011-04-17T21:20:46Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
1494e52
Parents:
3ab580a
Message:

inode_grow(): update inode size even when a new zone is not needed

File:
1 edited

Legend:

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

    r3ab580a r127d999  
    332332        start_zone += (old_size % bs) != 0;
    333333
     334        mfsdebug("zones to add = %u\n", zones_to_add);
     335
     336        if (zones_to_add == 0) {
     337                /*Set the new inode size and exit*/
     338                ino_i->i_size = new_size;
     339                ino_i->dirty = true;
     340                return EOK;
     341        }
     342
    334343        int r;
    335344        for (i = 0; i < zones_to_add; ++i) {
Note: See TracChangeset for help on using the changeset viewer.