public Block[] getBlocksBeingWrittenReport(int namespaceId) throws IOException {
    LightWeightHashSet<Block> blockSet = new LightWeightHashSet<Block>();
    volumes.getBlocksBeingWrittenInfo(namespaceId, blockSet);
    Block blockTable[] = new Block[blockSet.size()];
    int i = 0;
      for (Iterator<Block> it = blockSet.iterator(); it.hasNext(); i++) {
    blockTable[i] = it.next();
    }
    return blockTable;
  }
public Block [ ] getBlocksBeingWrittenReport ( int namespaceId ) throws IOException { LightWeightHashSet < Block > blockSet = new LightWeightHashSet < Block > ( ) ; volumes . getBlocksBeingWrittenInfo ( namespaceId , blockSet ) ; Block blockTable [ ] = new Block [ blockSet . size ( ) ] ; int i = 0 ; for ( Iterator < Block > it = blockSet . iterator ( ) ; it . hasNext ( ) ; i ++ ) { blockTable [ i ] = it . next ( ) ; } return blockTable ; }
Return a table of blocks being written data
@throws IOException