public long allocAppend ( long cluster ) throws IOException { testCluster ( cluster ) ; while ( ! isEofCluster ( entries [ ( int ) cluster ] ) ) { cluster = entries [ ( int ) cluster ] ; } long newCluster = allocNew ( ) ; entries [ ( int ) cluster ] = newCluster ; return newCluster ; }
Allocate a cluster to append to a new file