32bit.h 594 B

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