Initial function to search for inode. Missing indexing