Changeset 409 for trunk/kernel/fs/vfs.c


Ignore:
Timestamp:
Dec 20, 2017, 4:51:09 PM (6 years ago)
Author:
alain
Message:

Fix bugs in exec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/fs/vfs.c

    r408 r409  
    335335////////////////////////////////////////////
    336336void vfs_inode_set_size( xptr_t    inode_xp,
    337                               uint32_t  size )
     337                         uint32_t  size )
    338338{
    339339    // get inode cluster and local pointer
     
    370370
    371371/////////////////////////////////////////
    372 xptr_t vfs_inode_owner( xptr_t inode_xp )
    373 {
    374     // get inode cluster and local pointer
    375     cxy_t         cxy = GET_CXY( inode_xp );
    376     vfs_inode_t * ptr = (vfs_inode_t *)GET_PTR( inode_xp );
    377 
    378     // get the main lock
    379     return remote_spinlock_owner( XPTR( cxy , &ptr->main_lock ) );
    380 }
    381 
    382 /////////////////////////////////////////
    383 void vfs_inode_display( xptr_t inode_xp )
     372void vfs_inode_get_name( xptr_t inode_xp,
     373                         char * name )
    384374{
    385375    cxy_t          inode_cxy;
     
    389379    vfs_dentry_t * dentry_ptr;
    390380   
    391     char           name[CONFIG_VFS_MAX_NAME_LENGTH];
    392 
    393381    // get inode cluster and local pointer
    394382    inode_cxy = GET_CXY( inode_xp );
     
    411399                           XPTR( dentry_cxy , &dentry_ptr->name ) );
    412400    }
    413 
    414     // display inode header
    415     printk("\n***** inode <%s> [%x in cluster %x]\n",
    416            name , GET_PTR(inode_xp) , GET_CXY(inode_xp) );
    417 
    418     // display children from xhtab
    419     xhtab_display( XPTR( inode_cxy , &inode_ptr->children ) );
    420 
    421 }  // end vfs_inode_display()
     401}  // end vfs_inode_get_name()
    422402
    423403////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.