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

Changeset 8a49fed in mainline for uspace/srv/fs/minixfs/mfs_rw.c


Ignore:
Timestamp:
2011-04-30T11:45:33Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
44c6091f
Parents:
2874547
Message:

Added implementation of mfs_truncate(), it does not prune indirect blocks yet.

File:
1 edited

Legend:

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

    r2874547 r8a49fed  
    8383{
    8484        const struct mfs_sb_info *sbi = mnode->instance->sbi;
    85         const int block_size = sbi->block_size;
    8685
    8786        /*Compute the relative block number in file*/
    88         int rblock = pos / block_size;
     87        int rblock = pos / sbi->block_size;
    8988
    9089        return rw_map_ondisk(old_zone, mnode, rblock, true, new_zone);
Note: See TracChangeset for help on using the changeset viewer.