public long getHardLinkId ( String src ) throws IOException { byte [ ] [ ] components = INode . getPathComponents ( src ) ; readLock ( ) ; try { INodeFile node = this . getFileINode ( components ) ; if ( ( ! exists ( node ) ) || ( ! ( node instanceof INodeHardLinkFile ) ) ) { throw new IOException ( src + " is not a valid hardlink file" ) ; } return ( ( INodeHardLinkFile ) node ) . getHardLinkID ( ) ; } finally { readUnlock ( ) ; } }
Retrieves a the hardlink id for a given file .