Changeset 296 for trunk/kernel/vfs
- Timestamp:
- Jul 31, 2017, 1:59:52 PM (7 years ago)
- Location:
- trunk/kernel/vfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/vfs/vfs.c
r279 r296 154 154 error_t error; 155 155 156 vfs_dmsg("\n[INFO] %s : enter / local_c luster = %x / parent_cluster = %x\n",157 __FUNCTION__ , local_cxy , GET_CXY( dentry_xp ));156 vfs_dmsg("\n[INFO] %s : enter / local_cxy = %x / parent_xp = %l\n", 157 __FUNCTION__ , local_cxy , dentry_xp ); 158 158 159 159 // check fs type and get pointer on context … … 228 228 remote_spinlock_init( XPTR( local_cxy , &inode->main_lock ) ); 229 229 230 vfs_dmsg("\n[INFO] %s : e nter / local_cluster = %x / parent_cluster = %x\n",231 __FUNCTION__ , local_cxy , GET_CXY( dentry_xp ));230 vfs_dmsg("\n[INFO] %s : exit / child_xp = %l / parent_xp = %l\n", 231 __FUNCTION__ , XPTR( local_cxy , inode ) , dentry_xp ); 232 232 233 233 // return extended pointer on inode … … 435 435 kmem_req_t req; // request to kernel memory allocator 436 436 437 vfs_dmsg("\n[INFO] %s : enter for %s / parent inode = %x / cycle = %d\n", 438 __FUNCTION__ , name , parent , hal_time_stamp() ); 439 437 440 // get pointer on context 438 441 if ( fs_type == FS_TYPE_FATFS ) ctx = &fs_context[FS_TYPE_FATFS]; … … 481 484 // return extended pointer on dentry 482 485 *dentry_xp = XPTR( local_cxy , dentry ); 486 487 vfs_dmsg("\n[INFO] %s : exit for %s / cycle = %d\n", 488 __FUNCTION__ , name , hal_time_stamp() ); 483 489 484 490 return 0; … … 1522 1528 parent_ptr = (vfs_inode_t *)GET_PTR( parent_xp ); 1523 1529 1524 vfs_dmsg("\n[INFO] %s : enter in cluster %x / child_cxy = %x / parent_cxy = %x\n",1525 __FUNCTION__ , local_cxy , child_cxy , parent_cxy);1530 vfs_dmsg("\n[INFO] %s : enter in cluster %x for %s / child_cxy = %x / parent_xp = %l\n", 1531 __FUNCTION__ , local_cxy , name , child_cxy , parent_xp ); 1526 1532 1527 1533 // 1. create dentry … … 1611 1617 hal_remote_swd( XPTR( dentry_cxy , &dentry_ptr->child_xp ) , inode_xp ); 1612 1618 1619 vfs_dmsg("\n[INFO] %s : exit in cluster %x for %s\n", 1620 __FUNCTION__ , local_cxy , name ); 1621 1613 1622 // success : return extended pointer on child inode 1614 1623 *child_xp = inode_xp; -
trunk/kernel/vfs/vfs.h
r266 r296 653 653 /****************************************************************************************** 654 654 * This function creates a new couple dentry/inode, and insert it in the Inode-Tree. 655 * It can be executed by any thread running in any cluster , as this function656 * uses the rpc_dentry_create_client() and rpc_inode_create client() if required.657 * This is done in three steps:655 * It can be executed by any thread running in any cluster ( can be differente from both 656 * the child cluster and the parent cluster), as it uses the rpc_dentry_create_client() 657 * and rpc_inode_create client() if required. This is done in three steps: 658 658 * 1) The dentry is created in the cluster containing the existing <parent_xp> inode. 659 659 * The new dentry name is defined by the <name> argument.
Note: See TracChangeset
for help on using the changeset viewer.