Lines Matching refs:bg
653 struct ext2_group *bg = (struct ext2_group *)toybuf;
674 if (j) xwrite(TT.fsfd, bg, TT.blocksize);
675 memset(bg, 0, TT.blocksize);
688 bg[slot].free_inodes_count = SWAP_LE16(temp);
700 bg[slot].free_blocks_count = SWAP_LE32(temp);
704 bg[slot].block_bitmap = SWAP_LE32(used++);
705 bg[slot].inode_bitmap = SWAP_LE32(used++);
706 bg[slot].inode_table = SWAP_LE32(used);
707 bg[slot].used_dirs_count = 0; // (TODO)
709 xwrite(TT.fsfd, bg, TT.blocksize);