Ignore:
File:
1 edited

Legend:

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

    r980671e7 r7a46bfe  
    5353 *bytes, this function returns the on-disk block
    5454 *relative to that position.
    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.
     55 *Returns zero if the block does not exist.
    6156 */
    6257int
     
    232227}
    233228
    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  */
     229/*Free unused indirect zones*/
    241230int
    242231mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size)
     
    250239        mfs_version_t fs_version = sbi->fs_version;
    251240       
    252         assert(new_size <= ino_i->i_size);
    253 
    254241        if (fs_version == MFS_VERSION_V1) {
    255242                nr_direct = V1_NR_DIRECT_ZONES;
Note: See TracChangeset for help on using the changeset viewer.