

const
     {overall FS}

	BBSIZE          = 8192; {boot block size}
	SBSIZE          = 8192; {super block size}
	DEV_BSIZE       = 1024; {minimum transfer size}
	DEV_BSHIFT      = 10;   {log of DEV_BSIZE}
	SBLOCK          = BBSIZE div DEV_BSIZE;   {start of superblock}

	NRPOS           = 8;    {distinguishable rotational pos'ns}
	MAXIPG          = 2048; {max inodes/cyl group}
	MAXCPG          = 32;   {number of cyls/group}
	MAXFRAG         = 8;    {max no frags/block}
	MAXMNTLEN       = 512;  {mount path}
	MAXCSBUFS       = 32;   {max summary info per fs}
	NBBY            = 8;    {number bits/byte}
	HEXFF           = hex('ff'); {handy to have around}
     {inodes}
	NDADDR          = 12;   {direct blocks/inode}
	NIADDR          = 3;    {indirect blocks/inode}

     {directories}
	DIRBLKSIZE      = DEV_BSIZE;
	DIRSIZ          = 14;
	DIR_PADSIZE     = 10;
	MAXNAMLEN       = DIRSIZ;
	PADSIZ          = DIR_PADSIZE;

     {bit patterns}
	FS_MAGIC        = hex('011954');
	CG_MAGIC        = hex('090255');
	FS_CLEAN        = hex('17');
	FS_OK           = hex('53');
	FS_NOTOK        = hex('31');
	FS_MODIFIED     = chr(1);
	FS_NOT_MODIFIED = chr(0);       {sfb 7-apr-86}

	IFMT            = hex('F000');
	IFIFO           = hex('1000');
	IFCHR           = hex('2000');  {pws}
	IFDIR           = hex('4000');  {pws}
	IFBLK           = hex('6000');
	IFREG           = hex('8000');
	IFNWK           = hex('9000');
	IFLNK           = hex('A000');
	IFSOCK          = hex('C000');


