[freenos] [freenos commit] r184 - Ext2Create: include the last block in the generated image.

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Fri, 03 Jul 2009 11:35:50 +0000

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();

Other related posts:

  • » [freenos] [freenos commit] r184 - Ext2Create: include the last block in the generated image. - codesite-noreply