]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/64xbit.h
updating cwfs and moving installer in /rc/bin
[plan9front.git] / sys / src / cmd / cwfs / 64xbit.h
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         = 144,          /* 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