dump 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #------------------------------------------------------------------------------
  2. # dump: file(1) magic for dump file format--for new and old dump filesystems
  3. #
  4. # We specify both byte orders in order to recognize byte-swapped dumps.
  5. #
  6. 24 belong 60012 new-fs dump file (big endian),
  7. >4 bedate x Previous dump %s,
  8. >8 bedate x This dump %s,
  9. >12 belong >0 Volume %ld,
  10. >692 belong 0 Level zero, type:
  11. >692 belong >0 Level %d, type:
  12. >0 belong 1 tape header,
  13. >0 belong 2 beginning of file record,
  14. >0 belong 3 map of inodes on tape,
  15. >0 belong 4 continuation of file record,
  16. >0 belong 5 end of volume,
  17. >0 belong 6 map of inodes deleted,
  18. >0 belong 7 end of medium (for floppy),
  19. >676 string >\0 Label %s,
  20. >696 string >\0 Filesystem %s,
  21. >760 string >\0 Device %s,
  22. >824 string >\0 Host %s,
  23. >888 belong >0 Flags %x
  24. 24 belong 60011 old-fs dump file (big endian),
  25. #>4 bedate x Previous dump %s,
  26. #>8 bedate x This dump %s,
  27. >12 belong >0 Volume %ld,
  28. >692 belong 0 Level zero, type:
  29. >692 belong >0 Level %d, type:
  30. >0 belong 1 tape header,
  31. >0 belong 2 beginning of file record,
  32. >0 belong 3 map of inodes on tape,
  33. >0 belong 4 continuation of file record,
  34. >0 belong 5 end of volume,
  35. >0 belong 6 map of inodes deleted,
  36. >0 belong 7 end of medium (for floppy),
  37. >676 string >\0 Label %s,
  38. >696 string >\0 Filesystem %s,
  39. >760 string >\0 Device %s,
  40. >824 string >\0 Host %s,
  41. >888 belong >0 Flags %x
  42. 24 lelong 60012 new-fs dump file (little endian),
  43. >4 ledate x This dump %s,
  44. >8 ledate x Previous dump %s,
  45. >12 lelong >0 Volume %ld,
  46. >692 lelong 0 Level zero, type:
  47. >692 lelong >0 Level %d, type:
  48. >0 lelong 1 tape header,
  49. >0 lelong 2 beginning of file record,
  50. >0 lelong 3 map of inodes on tape,
  51. >0 lelong 4 continuation of file record,
  52. >0 lelong 5 end of volume,
  53. >0 lelong 6 map of inodes deleted,
  54. >0 lelong 7 end of medium (for floppy),
  55. >676 string >\0 Label %s,
  56. >696 string >\0 Filesystem %s,
  57. >760 string >\0 Device %s,
  58. >824 string >\0 Host %s,
  59. >888 lelong >0 Flags %x
  60. 24 lelong 60011 old-fs dump file (little endian),
  61. #>4 ledate x Previous dump %s,
  62. #>8 ledate x This dump %s,
  63. >12 lelong >0 Volume %ld,
  64. >692 lelong 0 Level zero, type:
  65. >692 lelong >0 Level %d, type:
  66. >0 lelong 1 tape header,
  67. >0 lelong 2 beginning of file record,
  68. >0 lelong 3 map of inodes on tape,
  69. >0 lelong 4 continuation of file record,
  70. >0 lelong 5 end of volume,
  71. >0 lelong 6 map of inodes deleted,
  72. >0 lelong 7 end of medium (for floppy),
  73. >676 string >\0 Label %s,
  74. >696 string >\0 Filesystem %s,
  75. >760 string >\0 Device %s,
  76. >824 string >\0 Host %s,
  77. >888 lelong >0 Flags %x
  78. 18 leshort 60011 old-fs dump file (16-bit, assuming PDP-11 endianness),
  79. >2 medate x Previous dump %s,
  80. >6 medate x This dump %s,
  81. >10 leshort >0 Volume %ld,
  82. >0 leshort 1 tape header.
  83. >0 leshort 2 beginning of file record.
  84. >0 leshort 3 map of inodes on tape.
  85. >0 leshort 4 continuation of file record.
  86. >0 leshort 5 end of volume.
  87. >0 leshort 6 map of inodes deleted.
  88. >0 leshort 7 end of medium (for floppy).