Changeset 367 for trunk/kernel/vfs/vfs.c
- Timestamp:
- Aug 14, 2017, 11:39:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/vfs/vfs.c
r337 r367 1103 1103 inode_type = hal_remote_lw( XPTR( inode_cxy , &inode_ptr->type ) ); 1104 1104 1105 // get local pointer on associated mapper 1106 mapper_t * mapper_ptr = hal_remote_lpt( XPTR( inode_cxy , &inode_ptr->mapper ) ); 1107 1105 1108 // make a local copy of node name 1106 1109 hal_remote_strcpy( XPTR( local_cxy , name ) , name_xp ); 1107 1110 1108 1111 // display inode 1109 nolock_printk("%s%s <%s> inode_xp = %l / dentry_xp= %l\n",1110 indent_str[indent], vfs_inode_type_str( inode_type ), 1111 name , inode_xp, dentry_xp );1112 nolock_printk("%s%s <%s> : inode = %l / mapper = %l / dentry = %l\n", 1113 indent_str[indent], vfs_inode_type_str( inode_type ), name, 1114 inode_xp , XPTR( inode_cxy , mapper_ptr ) , dentry_xp ); 1112 1115 1113 1116 // scan directory entries … … 1165 1168 1166 1169 // get extended pointer on associated dentry 1167 dentry_xp = hal_remote_lwd( XPTR( inode_cxy , &inode_ptr->parent_xp ) );1170 dentry_xp = hal_remote_lwd( XPTR( inode_cxy , &inode_ptr->parent_xp ) ); 1168 1171 1169 1172 // check if target inode is the File System root … … 1604 1607 parent_ptr = (vfs_inode_t *)GET_PTR( parent_xp ); 1605 1608 1606 vfs_dmsg("\n[INFO] %s : enter in cluster %x for %s/ child_cxy = %x / parent_xp = %l\n",1609 vfs_dmsg("\n[INFO] %s : enter in cluster %x for <%s> / child_cxy = %x / parent_xp = %l\n", 1607 1610 __FUNCTION__ , local_cxy , name , child_cxy , parent_xp ); 1608 1611 … … 1615 1618 &dentry_xp ); 1616 1619 1617 vfs_dmsg("\n[INFO] %s : dentry created in local cluster %x\n",1618 __FUNCTION__ , local_cxy );1620 vfs_dmsg("\n[INFO] %s : dentry <%s> created in local cluster %x\n", 1621 __FUNCTION__ , name , local_cxy ); 1619 1622 } 1620 1623 else // parent cluster is remote … … 1627 1630 &error ); 1628 1631 1629 vfs_dmsg("\n[INFO] %s : dentry created in remote cluster %x\n",1630 __FUNCTION__ , parent_cxy );1632 vfs_dmsg("\n[INFO] %s : dentry <%s> created in remote cluster %x\n", 1633 __FUNCTION__ , name , parent_cxy ); 1631 1634 } 1632 1635 … … 1656 1659 &inode_xp ); 1657 1660 1658 vfs_dmsg("\n[INFO] %s : inode created in local cluster %x\n",1659 __FUNCTION__ , local_cxy );1661 vfs_dmsg("\n[INFO] %s : inode %l created in local cluster %x\n", 1662 __FUNCTION__ , inode_xp , local_cxy ); 1660 1663 } 1661 1664 else // child cluster is remote … … 1673 1676 &error ); 1674 1677 1675 vfs_dmsg("\n[INFO] %s : inode created in remote cluster %x\n",1676 __FUNCTION__ , child_cxy );1678 vfs_dmsg("\n[INFO] %s : inode %l created in remote cluster %x\n", 1679 __FUNCTION__ , inode_xp , child_cxy ); 1677 1680 } 1678 1681 … … 1693 1696 hal_remote_swd( XPTR( dentry_cxy , &dentry_ptr->child_xp ) , inode_xp ); 1694 1697 1695 vfs_dmsg("\n[INFO] %s : exit in cluster %x for %s\n",1698 vfs_dmsg("\n[INFO] %s : exit in cluster %x for <%s>\n", 1696 1699 __FUNCTION__ , local_cxy , name ); 1697 1700 … … 1716 1719 mapper_t * mapper = page->mapper; 1717 1720 1718 1719 1721 assert( (mapper != NULL) , __FUNCTION__ , "no mapper for page\n" ); 1720 1722 1721 vfs_dmsg("\n[INFO] %s : enters for page = %d in mapper = %x\n",1722 __FUNCTION__ , page->index , mapper);1723 vfs_dmsg("\n[INFO] %s : enters for page %d in mapper / inode %l\n", 1724 __FUNCTION__ , page->index , XPTR( local_cxy , &mapper->inode ) ); 1723 1725 1724 1726 // get FS type … … 1745 1747 } 1746 1748 1747 vfs_dmsg("\n[INFO] %s : exit for page = %d in mapper = %x\n",1748 __FUNCTION__ , page->index , mapper);1749 vfs_dmsg("\n[INFO] %s : exit for page %d in mapper / inode %l\n", 1750 __FUNCTION__ , page->index , XPTR( local_cxy , &mapper->inode) ); 1749 1751 1750 1752 return error;
Note: See TracChangeset
for help on using the changeset viewer.