ByteBuffer block = getBlockAt(bat.getOurBlockIndex());
BlockAllocationTableWriter.writeBlock(bat, block);
}
+ // XBats
+ for(BATBlock bat : _xbat_blocks) {
+ ByteBuffer block = getBlockAt(bat.getOurBlockIndex());
+ BlockAllocationTableWriter.writeBlock(bat, block);
+ }
// SBATs
_mini_store.syncWithDataSource();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
fs.writeFilesystem(baos);
- // TODO Correct this to work
-if(1==2) {
// Check that it is seen correctly
fs = new NPOIFSFileSystem(new ByteArrayInputStream(baos.toByteArray()));
assertBATCount(fs, 237, 2);
// TODO Do some more checks
-}
// All done
fs.close();