]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/32bit.h
cwfs: removed annoying 'grow from' message
[plan9front.git] / sys / src / cmd / cwfs / 32bit.h
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