dump 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #------------------------------------------------------------------------------
  2. # $File: dump,v 1.11 2009/09/19 16:28:09 christos Exp $
  3. # dump: file(1) magic for dump file format--for new and old dump filesystems
  4. #
  5. # We specify both byte orders in order to recognize byte-swapped dumps.
  6. #
  7. 24 belong 60012 new-fs dump file (big endian),
  8. >4 bedate x Previous dump %s,
  9. >8 bedate x This dump %s,
  10. >12 belong >0 Volume %ld,
  11. >692 belong 0 Level zero, type:
  12. >692 belong >0 Level %d, type:
  13. >0 belong 1 tape header,
  14. >0 belong 2 beginning of file record,
  15. >0 belong 3 map of inodes on tape,
  16. >0 belong 4 continuation of file record,
  17. >0 belong 5 end of volume,
  18. >0 belong 6 map of inodes deleted,
  19. >0 belong 7 end of medium (for floppy),
  20. >676 string >\0 Label %s,
  21. >696 string >\0 Filesystem %s,
  22. >760 string >\0 Device %s,
  23. >824 string >\0 Host %s,
  24. >888 belong >0 Flags %x
  25. 24 belong 60011 old-fs dump file (big endian),
  26. #>4 bedate x Previous dump %s,
  27. #>8 bedate x This dump %s,
  28. >12 belong >0 Volume %ld,
  29. >692 belong 0 Level zero, type:
  30. >692 belong >0 Level %d, type:
  31. >0 belong 1 tape header,
  32. >0 belong 2 beginning of file record,
  33. >0 belong 3 map of inodes on tape,
  34. >0 belong 4 continuation of file record,
  35. >0 belong 5 end of volume,
  36. >0 belong 6 map of inodes deleted,
  37. >0 belong 7 end of medium (for floppy),
  38. >676 string >\0 Label %s,
  39. >696 string >\0 Filesystem %s,
  40. >760 string >\0 Device %s,
  41. >824 string >\0 Host %s,
  42. >888 belong >0 Flags %x
  43. 24 lelong 60012 new-fs dump file (little endian),
  44. >4 ledate x This dump %s,
  45. >8 ledate x Previous dump %s,
  46. >12 lelong >0 Volume %ld,
  47. >692 lelong 0 Level zero, type:
  48. >692 lelong >0 Level %d, type:
  49. >0 lelong 1 tape header,
  50. >0 lelong 2 beginning of file record,
  51. >0 lelong 3 map of inodes on tape,
  52. >0 lelong 4 continuation of file record,
  53. >0 lelong 5 end of volume,
  54. >0 lelong 6 map of inodes deleted,
  55. >0 lelong 7 end of medium (for floppy),
  56. >676 string >\0 Label %s,
  57. >696 string >\0 Filesystem %s,
  58. >760 string >\0 Device %s,
  59. >824 string >\0 Host %s,
  60. >888 lelong >0 Flags %x
  61. 24 lelong 60011 old-fs dump file (little endian),
  62. #>4 ledate x Previous dump %s,
  63. #>8 ledate x This dump %s,
  64. >12 lelong >0 Volume %ld,
  65. >692 lelong 0 Level zero, type:
  66. >692 lelong >0 Level %d, type:
  67. >0 lelong 1 tape header,
  68. >0 lelong 2 beginning of file record,
  69. >0 lelong 3 map of inodes on tape,
  70. >0 lelong 4 continuation of file record,
  71. >0 lelong 5 end of volume,
  72. >0 lelong 6 map of inodes deleted,
  73. >0 lelong 7 end of medium (for floppy),
  74. >676 string >\0 Label %s,
  75. >696 string >\0 Filesystem %s,
  76. >760 string >\0 Device %s,
  77. >824 string >\0 Host %s,
  78. >888 lelong >0 Flags %x
  79. 18 leshort 60011 old-fs dump file (16-bit, assuming PDP-11 endianness),
  80. >2 medate x Previous dump %s,
  81. >6 medate x This dump %s,
  82. >10 leshort >0 Volume %ld,
  83. >0 leshort 1 tape header.
  84. >0 leshort 2 beginning of file record.
  85. >0 leshort 3 map of inodes on tape.
  86. >0 leshort 4 continuation of file record.
  87. >0 leshort 5 end of volume.
  88. >0 leshort 6 map of inodes deleted.
  89. >0 leshort 7 end of medium (for floppy).
  90. 24 belong 0x19540119 new-fs dump file (ufs2, big endian),
  91. >896 beqdate x Previous dump %s,
  92. >904 beqdate x This dump %s,
  93. >12 belong >0 Volume %ld,
  94. >692 belong 0 Level zero, type:
  95. >692 belong >0 Level %d, type:
  96. >0 belong 1 tape header,
  97. >0 belong 2 beginning of file record,
  98. >0 belong 3 map of inodes on tape,
  99. >0 belong 4 continuation of file record,
  100. >0 belong 5 end of volume,
  101. >0 belong 6 map of inodes deleted,
  102. >0 belong 7 end of medium (for floppy),
  103. >676 string >\0 Label %s,
  104. >696 string >\0 Filesystem %s,
  105. >760 string >\0 Device %s,
  106. >824 string >\0 Host %s,
  107. >888 belong >0 Flags %x
  108. 24 lelong 0x19540119 new-fs dump file (ufs2, little endian),
  109. >896 leqdate x This dump %s,
  110. >904 leqdate x Previous dump %s,
  111. >12 lelong >0 Volume %ld,
  112. >692 lelong 0 Level zero, type:
  113. >692 lelong >0 Level %d, type:
  114. >0 lelong 1 tape header,
  115. >0 lelong 2 beginning of file record,
  116. >0 lelong 3 map of inodes on tape,
  117. >0 lelong 4 continuation of file record,
  118. >0 lelong 5 end of volume,
  119. >0 lelong 6 map of inodes deleted,
  120. >0 lelong 7 end of medium (for floppy),
  121. >676 string >\0 Label %s,
  122. >696 string >\0 Filesystem %s,
  123. >760 string >\0 Device %s,
  124. >824 string >\0 Host %s,
  125. >888 lelong >0 Flags %x