Author: nieklinnenbank Date: Wed Jul 8 05:19:23 2009 New Revision: 209 Modified: trunk/srv/filesystem/ext2/Ext2Create.cpp Log: Switched the order of arguments for BitMap::setMap in Ext2Create. Modified: trunk/srv/filesystem/ext2/Ext2Create.cpp ============================================================================== --- trunk/srv/filesystem/ext2/Ext2Create.cpp (original) +++ trunk/srv/filesystem/ext2/Ext2Create.cpp Wed Jul 8 05:19:23 2009 @@ -348,10 +348,14 @@ group->usedDirsCount = ZERO; /* Create BitMap instances. */ - blockMap = new BitMap(super->blocksPerGroup, - BLOCKPTR(u8, 2)); - inodeMap = new BitMap(super->inodesPerGroup, - BLOCKPTR(u8, 3)); + blockMap = new BitMap(BLOCKPTR(u8, 2), + super->blocksPerGroup); + inodeMap = new BitMap(BLOCKPTR(u8, 3), + super->inodesPerGroup); + + /* Clear them. */ + blockMap->clear(); + inodeMap->clear(); /* Mark the appropriate blocks used. */ blockMap->markRange(0, 4);