static INode [ ] getINodeArray ( INode inode ) throws IOException { // calculate the depth of this inode from root int depth = getPathDepth ( inode ) ; INode [ ] inodes = new INode [ depth ] ; // fill up the inodes in the path from this inode to root for ( int i = 0 ; i < depth ; i ++ ) { inodes [ depth - i - 1 ] = inode ; inode = inode . parent ; } return inodes ; }
Return the inode array representing the given inode s full path name