xref: /plan9/sys/src/cmd/cwfs/64bit.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 /* the glorious new, incompatible (on disk) 64-bit world */
7 
8 /* keeping NAMELEN ≤ 50 bytes permits 3 Dentrys per mag disk sector */
9 enum {
10 	NAMELEN		= 56,		/* max size of file name components */
11 	NDBLOCK		= 6,		/* number of direct blocks in Dentry */
12 	NIBLOCK		= 4,		/* max depth of indirect blocks */
13 };
14 
15 /*
16  * file offsets & sizes, in bytes & blocks.  typically long or vlong.
17  * vlong is used in the code where would be needed if Off were just long.
18  */
19 typedef vlong Off;
20 
21 #undef COMPAT32
22 #define swaboff swab8
23