32bit.h 1006 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. /*
  10. * fundamental constants and types of the implementation
  11. * changing any of these changes the layout on disk
  12. */
  13. /*
  14. * compatible on disk with the old 32-bit file server and can also speak 9P1.
  15. * this lets people run this file server on their old file systems.
  16. * DON'T TOUCH or you'll break compatibility.
  17. */
  18. enum {
  19. NAMELEN = 28, /* max size of file name components */
  20. NDBLOCK = 6, /* number of direct blocks in Dentry */
  21. NIBLOCK = 2, /* max depth of indirect blocks */
  22. };
  23. typedef long Off; /* file offsets & sizes, in bytes & blocks */
  24. #define COMPAT32
  25. #define swaboff swab4