xref: /plan9/sys/src/cmd/cwfs/32bit.h (revision 01a344a29f2ff35133953eaef092a50fc8c3163b)
1 /*
2  * fundamental constants and types of the implementation
3  * changing any of these changes the layout on disk
4  */
5 
6 /*
7  * compatible on disk with the old 32-bit file server and can also speak 9P1.
8  * this lets people run this file server on their old file systems.
9  * DON'T TOUCH or you'll break compatibility.
10  */
11 enum {
12 	NAMELEN		= 28,		/* max size of file name components */
13 	NDBLOCK		= 6,		/* number of direct blocks in Dentry */
14 	NIBLOCK		= 2,		/* max depth of indirect blocks */
15 };
16 
17 typedef long Off;	/* file offsets & sizes, in bytes & blocks */
18 
19 #define COMPAT32
20 #define swaboff swab4
21