/filesystems/unixfs/ancientfs/ancientfs.h

http://macfuse.googlecode.com/ · C Header · 51 lines · 24 code · 8 blank · 19 comment · 0 complexity · 51c8bacb6be521a8701e6f5f21c5eefd MD5 · raw file

  1. /*
  2. * Ancient UNIX File Systems for MacFUSE
  3. * Amit Singh
  4. * http://osxbook.com
  5. */
  6. #ifndef _ANCIENTFS_H_
  7. #define _ANCIENTFS_H_
  8. /* only upper-half bits */
  9. #define ANCIENTFS_UNIX_V1 0x80000000
  10. #define ANCIENTFS_UNIX_V2 0x40000000
  11. #define ANCIENTFS_UNIX_V3 0x20000000
  12. #define ANCIENTFS_UNIX_V4 0x10000000
  13. #define ANCIENTFS_UNIX_V5 0x08000000
  14. #define ANCIENTFS_UNIX_V6 0x04000000
  15. #define ANCIENTFS_UNIX_V10 0x02000000
  16. #define ANCIENTFS_GENTAPE 0x01000000
  17. #define ANCIENTFS_DECTAPE 0x00800000
  18. #define ANCIENTFS_MAGTAPE 0x00400000
  19. #define ANCIENTFS_DUMP1KB 0x00200000
  20. #define ANCIENTFS_VERYOLDAR 0x00100000
  21. #define ANCIENTFS_V7TAR 0x00080000
  22. #define ANCIENTFS_USTAR 0x00040000
  23. #define ANCIENTFS_NEWCRC 0x00020000
  24. #define TAPEDIR_BEGIN_BLOCK_GENERIC 1
  25. #define TAPEDIR_END_BLOCK_GENERIC (1024*1024)
  26. /*
  27. * Block zero of the tape is not used. It is available as a boot program to
  28. * be used in a standalone environment. For example, it was used for DEC
  29. * diagnostic programs.
  30. *
  31. * Blocks 1 through 24 contain a directory of the tape. There are 192 entries
  32. * in the directory; 8 entries per block; 64 bytes per entry. We can think of
  33. * such an entry the tape's "dinode".
  34. */
  35. #define TAPEDIR_BEGIN_BLOCK_DEC 1
  36. #define TAPEDIR_END_BLOCK_DEC 24
  37. /*
  38. * In the case of magtape, the directory blocks go from 1 through 62. It has
  39. * 496 entries.
  40. */
  41. #define TAPEDIR_BEGIN_BLOCK_MAG 1
  42. #define TAPEDIR_END_BLOCK_MAG 62
  43. #endif /* _ANCIENTFS_H_ */