-#define CG_MAGIC 0x092752
-struct cg {
- long cg_magic; /* magic number */
- time_t cg_time; /* time last written */
- short cg_cgx; /* we are the cgx'th cylinder group */
- short cg_ncyl; /* number of cyl's this cg */
- short cg_niblk; /* number of inode blocks this cg */
- short cg_ndblk; /* number of data blocks this cg */
- short cg_nifree; /* free inodes */
- short cg_ndir; /* allocated directories */
- short cg_nffree; /* free block fragments */
- short cg_nbfree; /* free blocks */
- short cg_rotor; /* position of last used block */
- short cg_irotor; /* position of last used inode */
- short cg_frotor; /* position of last used frag */
- short cg_frsum[FRAG]; /* counts of available frags */
- short cg_b[MAXCPG][NRPOS]; /* positions of free blocks */
- char cg_iused[MAXIPG/NBBY]; /* used inode map */
- char cg_free[1]; /* free block map */
-/* actually longer */
-};
-#define cgsize(fp) (sizeof (struct cg) + ((fp)->fs_fpg+NBBY-1)/NBBY)