dump 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #------------------------------------------------------------------------------
  2. # $File: dump,v 1.13 2014/04/30 21:41:02 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. 0 name new-dump-be
  8. >4 bedate x Previous dump %s,
  9. >8 bedate x This dump %s,
  10. >12 belong >0 Volume %d,
  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. 0 name old-dump-be
  26. #>4 bedate x Previous dump %s,
  27. #>8 bedate x This dump %s,
  28. >12 belong >0 Volume %d,
  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. 0 name ufs2-dump-be
  44. >896 beqdate x Previous dump %s,
  45. >904 beqdate x This dump %s,
  46. >12 belong >0 Volume %d,
  47. >692 belong 0 Level zero, type:
  48. >692 belong >0 Level %d, type:
  49. >0 belong 1 tape header,
  50. >0 belong 2 beginning of file record,
  51. >0 belong 3 map of inodes on tape,
  52. >0 belong 4 continuation of file record,
  53. >0 belong 5 end of volume,
  54. >0 belong 6 map of inodes deleted,
  55. >0 belong 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 belong >0 Flags %x
  61. 24 belong 60012 new-fs dump file (big endian),
  62. >0 use new-dump-be
  63. 24 belong 60011 old-fs dump file (big endian),
  64. >0 use old-dump-be
  65. 24 lelong 60012 new-fs dump file (little endian),
  66. >0 use \^new-dump-be
  67. 24 lelong 60011 old-fs dump file (little endian),
  68. >0 use \^old-dump-be
  69. 24 belong 0x19540119 new-fs dump file (ufs2, big endian),
  70. >0 use ufs2-dump-be
  71. 24 lelong 0x19540119 new-fs dump file (ufs2, little endian),
  72. >0 use \^ufs2-dump-be
  73. 18 leshort 60011 old-fs dump file (16-bit, assuming PDP-11 endianness),
  74. >2 medate x Previous dump %s,
  75. >6 medate x This dump %s,
  76. >10 leshort >0 Volume %d,
  77. >0 leshort 1 tape header.
  78. >0 leshort 2 beginning of file record.
  79. >0 leshort 3 map of inodes on tape.
  80. >0 leshort 4 continuation of file record.
  81. >0 leshort 5 end of volume.
  82. >0 leshort 6 map of inodes deleted.
  83. >0 leshort 7 end of medium (for floppy).