Changeset 05fb96b in mainline for uspace/srv/fs/mfs/mfs_inode.c


Ignore:
Timestamp:
2011-09-10T10:58:51Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f72c67a
Parents:
cccc091 (diff), 40a2af3 (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 from lp:mfs.

File:
1 edited

Legend:

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

    rcccc091 r05fb96b  
    4848                struct mfs_ino_info **ino_ptr, uint32_t inum);
    4949
    50 
     50/**Read a MINIX inode from disk
     51 *
     52 * @param inst          Pointer to the filesystem instance.
     53 * @param ino_i         Pointer to the generic MINIX inode
     54 *                      where the inode content will be stored.
     55 * @param index         index of the inode to read.
     56 *
     57 * @return              EOK on success or a negative error code.
     58 */
    5159int
    5260mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i,
     
    7785
    7886        sbi = instance->sbi;
    79         assert(sbi);
    8087
    8188        /*inode 0 does not exist*/
     
    142149
    143150        sbi = instance->sbi;
    144         assert(sbi);
    145151
    146152        /*inode 0 does not exist*/
     
    185191}
    186192
     193/**Write a MINIX inode on disk (if marked as dirty)
     194 *
     195 * @param mnode         Pointer to the generic MINIX inode in memory.
     196 *
     197 * @return              EOK on success or a negative error code.
     198 */
    187199int
    188 mfs_put_inode_core(struct mfs_node *mnode)
     200mfs_put_inode(struct mfs_node *mnode)
    189201{
    190202        int rc = EOK;
    191 
    192         assert(mnode);
    193         assert(mnode->ino_i);
    194203
    195204        if (!mnode->ino_i->dirty)
     
    197206
    198207        struct mfs_instance *inst = mnode->instance;
    199         assert(inst);
    200208        struct mfs_sb_info *sbi = inst->sbi;
    201         assert(sbi);
    202209
    203210        if (sbi->fs_version == MFS_VERSION_V1)
     
    299306}
    300307
     308/**Reduce the inode size of a given number of bytes
     309 *
     310 * @param mnode         Pointer to the generic MINIX inode in memory.
     311 * @param size_shrink   Number of bytes that will be subtracted to the inode.
     312 *
     313 * @return              EOK on success or a negative error code.
     314 */
    301315int
    302316mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink)
Note: See TracChangeset for help on using the changeset viewer.