diff --git a/format/main.c b/format/main.c index 51d08e7..0876009 100644 --- a/format/main.c +++ b/format/main.c @@ -133,7 +133,7 @@ memset(sb, 0, sizeof(ubixfs_superBlock)); strcpy(sb->name, "UbixFS"); - // sb->magic1 = ? + sb->magic1 = UBIX_MAGIC1; sb->fsByteOrder = 0; sb->blockSize = 4096; sb->blockShift = 12; @@ -141,7 +141,7 @@ sb->usedBlocks = 1; // superblock counts as a used block sb->inodeCount = 0; sb->inodeSize = 4096; - // sb->magic2 = ? + sb->magic2 = UBIX_MAGIC2; sb->blocksPerAG = 2048; sb->AGShift = 11; sb->numAGs = (sb->numBlocks+2047) / 2048; @@ -152,7 +152,7 @@ sb->logBlocks.len = 0; sb->logStart = 0; sb->logEnd = 0; - // sb->magic3 = ? + sb->magic3 = UBIX_MAGIC3; sb->indicies.allocationGroup = 0; sb->indicies.start = 0; sb->indicies.len = 0; @@ -203,6 +203,10 @@ /*** $Log$ + Revision 1.9 2004/09/06 16:44:21 flameshadow + chg: changed the pointers in include/inode.h to be void * + add: wrote out root dir in the format utility + Revision 1.8 2004/09/06 10:24:56 flameshadow chg: sync diff --git a/include/superblock.h b/include/superblock.h index 0bf41f7..c4fb4e4 100644 --- a/include/superblock.h +++ b/include/superblock.h @@ -3,6 +3,10 @@ #include +#define UBIX_MAGIC1 0x0; +#define UBIX_MAGIC2 0x0; +#define UBIX_MAGIC3 0x0; + typedef struct blockRun { int allocationGroup __attribute__ ((packed)); unsigned short start __attribute__ ((packed));