Changeset 432a269 in mainline for uspace/srv/fs/mfs/mfs_rw.c


Ignore:
Timestamp:
2011-09-16T21:13:57Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a11f17
Parents:
c0e53ff (diff), fd07e526 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    rc0e53ff r432a269  
    5353 *bytes, this function returns the on-disk block
    5454 *relative to that position.
    55  *Returns zero if the block does not exist.
     55 *
     56 * @param b     Pointer to a 32bit number where the block number will be stored
     57 * @param mnode Pointer to a generic MINIX inode in memory.
     58 * @param pos   Position in file.
     59 *
     60 * @return      EOK on success or a negative error code.
    5661 */
    5762int
     
    227232}
    228233
    229 /*Free unused indirect zones*/
     234/**Free unused indirect zones from a MINIX inode according to it's new size.
     235 *
     236 * @param mnode         Pointer to a generic MINIX inode in memory.
     237 * @param new_size      The new size of the inode.
     238 *
     239 * @return              EOK on success or a negative error code.
     240 */
    230241int
    231242mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size)
     
    239250        mfs_version_t fs_version = sbi->fs_version;
    240251       
     252        assert(new_size <= ino_i->i_size);
     253
    241254        if (fs_version == MFS_VERSION_V1) {
    242255                nr_direct = V1_NR_DIRECT_ZONES;
Note: See TracChangeset for help on using the changeset viewer.