Changeset 58c36ac in mainline for uspace/srv/fs/minixfs/mfs_ops.c


Ignore:
Timestamp:
2011-04-17T18:41:08Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ab580a
Parents:
9e2d6dc
Message:

Return the error code if put_inode() failed.

File:
1 edited

Legend:

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

    r9e2d6dc r58c36ac  
    310310        memset(ino_i->i_izone, 0, sizeof(uint32_t) * V2_NR_INDIRECT_ZONES);
    311311
     312        mfsdebug("new node idx = %d\n", (int) inum);
     313
    312314        ino_i->index = inum;
    313315        ino_i->dirty = true;
     
    315317        mnode->instance = inst;
    316318
    317         put_inode(mnode);
     319        r = put_inode(mnode);
     320        if (r != EOK)
     321                goto out_err_2;
    318322
    319323        fs_node_initialize(fsnode);
     
    374378        }
    375379        *rfn = NULL;
    376         return ENOENT;
    377380found:
    378381        return EOK;
     
    529532        struct mfs_node *child = cfn->data;
    530533
    531         mfsdebug("mfs_link()\n");
     534        mfsdebug("mfs_link() %d\n", (int) child->ino_i->index);
    532535
    533536        int r = insert_dentry(parent, name, child->ino_i->index);
     
    542545
    543546        *has_children = false;
     547
     548        mfsdebug("mfs_has_children()\n");
    544549
    545550        if (!S_ISDIR(mnode->ino_i->i_mode))
     
    590595                                IPC_GET_ARG4(*request));
    591596        fs_node_t *fn;
     597
     598        mfsdebug("mfs_read()\n");
    592599
    593600        rc = mfs_node_get(&fn, handle, index);
Note: See TracChangeset for help on using the changeset viewer.