64bit.h 634 B

12345678910111213141516171819202122
  1. /*
  2. * fundamental constants and types of the implementation
  3. * changing any of these changes the layout on disk
  4. */
  5. /* the glorious new, incompatible (on disk) 64-bit world */
  6. /* keeping NAMELEN ≤ 50 bytes permits 3 Dentrys per mag disk sector */
  7. enum {
  8. NAMELEN = 56, /* max size of file name components */
  9. NDBLOCK = 6, /* number of direct blocks in Dentry */
  10. NIBLOCK = 4, /* max depth of indirect blocks */
  11. };
  12. /*
  13. * file offsets & sizes, in bytes & blocks. typically long or vlong.
  14. * vlong is used in the code where would be needed if Off were just long.
  15. */
  16. typedef vlong Off;
  17. #undef COMPAT32
  18. #define swaboff swab8