Author: nieklinnenbank Date: Fri Jul 3 04:11:07 2009 New Revision: 184 Modified: trunk/srv/filesystem/ext2/Ext2Create.cpp Log: Ext2Create: include the last block in the generated image. Removed the -1 from Ext2Create::create(), as it otherwise did not include the last block in the final filesystem in writeImage(). Modified: trunk/srv/filesystem/ext2/Ext2Create.cpp ============================================================================== --- trunk/srv/filesystem/ext2/Ext2Create.cpp (original) +++ trunk/srv/filesystem/ext2/Ext2Create.cpp Fri Jul 3 04:11:07 2009 @@ -58,7 +58,7 @@ readInput(input, ZERO); /* Update superblock and group fields. */ - super->blocksCount = blockMap->markNext() - 1; + super->blocksCount = blockMap->markNext(); super->freeInodesCount = inodeMap->getFree(); super->freeBlocksCount = 0; group->freeInodesCount = inodeMap->getFree();