Changeset 1ba6651 in mainline for uspace/srv/fs/mfs/mfs_ops.c
- Timestamp:
- 2013-07-11T12:17:14Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3908355, cdc3afa
- Parents:
- 64e63ce1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_ops.c
r64e63ce1 r1ba6651 345 345 uint32_t inum; 346 346 347 mfsdebug("%s()\n", __FUNCTION__);348 349 347 r = mfs_instance_get(service_id, &inst); 350 348 if (r != EOK) … … 379 377 ino_i->i_mode = S_IFDIR; 380 378 ino_i->i_nlinks = 1; /* This accounts for the '.' dentry */ 381 } else 379 } else { 382 380 ino_i->i_mode = S_IFREG; 381 ino_i->i_nlinks = 0; 382 } 383 383 384 384 ino_i->i_uid = 0; … … 431 431 int r; 432 432 433 mfsdebug("%s()\n", __FUNCTION__);434 435 433 if (!S_ISDIR(ino_i->i_mode)) 436 434 return ENOTDIR; … … 479 477 struct mfs_instance *instance; 480 478 481 mfsdebug("%s()\n", __FUNCTION__);482 483 479 rc = mfs_instance_get(service_id, &instance); 484 480 if (rc != EOK) … … 493 489 int rc = EOK; 494 490 struct mfs_node *mnode = fsnode->data; 495 496 mfsdebug("%s()\n", __FUNCTION__);497 491 498 492 fibril_mutex_lock(&open_nodes_lock); … … 555 549 int rc; 556 550 557 mfsdebug("%s()\n", __FUNCTION__);558 559 551 fibril_mutex_lock(&open_nodes_lock); 560 552 … … 650 642 struct mfs_sb_info *sbi = parent->instance->sbi; 651 643 bool destroy_dentry = false; 652 653 mfsdebug("%s()\n", __FUNCTION__);654 644 655 645 if (str_size(name) > sbi->max_name_len) … … 703 693 bool has_children; 704 694 int r; 705 706 mfsdebug("%s()\n", __FUNCTION__);707 695 708 696 if (!parent) … … 970 958 mfs_destroy(service_id_t service_id, fs_index_t index) 971 959 { 972 fs_node_t *fn ;960 fs_node_t *fn = NULL; 973 961 int r; 974 962
Note:
See TracChangeset
for help on using the changeset viewer.