Ignore:
File:
1 edited

Legend:

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

    r7a46bfe r980671e7  
    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.