Changeset 58c36ac in mainline
- Timestamp:
- 2011-04-17T18:41:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ab580a
- Parents:
- 9e2d6dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_ops.c
r9e2d6dc r58c36ac 310 310 memset(ino_i->i_izone, 0, sizeof(uint32_t) * V2_NR_INDIRECT_ZONES); 311 311 312 mfsdebug("new node idx = %d\n", (int) inum); 313 312 314 ino_i->index = inum; 313 315 ino_i->dirty = true; … … 315 317 mnode->instance = inst; 316 318 317 put_inode(mnode); 319 r = put_inode(mnode); 320 if (r != EOK) 321 goto out_err_2; 318 322 319 323 fs_node_initialize(fsnode); … … 374 378 } 375 379 *rfn = NULL; 376 return ENOENT;377 380 found: 378 381 return EOK; … … 529 532 struct mfs_node *child = cfn->data; 530 533 531 mfsdebug("mfs_link() \n");534 mfsdebug("mfs_link() %d\n", (int) child->ino_i->index); 532 535 533 536 int r = insert_dentry(parent, name, child->ino_i->index); … … 542 545 543 546 *has_children = false; 547 548 mfsdebug("mfs_has_children()\n"); 544 549 545 550 if (!S_ISDIR(mnode->ino_i->i_mode)) … … 590 595 IPC_GET_ARG4(*request)); 591 596 fs_node_t *fn; 597 598 mfsdebug("mfs_read()\n"); 592 599 593 600 rc = mfs_node_get(&fn, handle, index);
Note:
See TracChangeset
for help on using the changeset viewer.