dump 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #------------------------------------------------------------------------------
  2. # $File: dump,v 1.17 2018/06/26 01:07:17 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 This dump %s,
  9. >8 bedate x Previous 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 This dump %s,
  27. #>8 bedate x Previous 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 This dump %s,
  45. >904 beqdate x Previous 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. # to correctly recognize '*.mo' GNU message catalog (little endian)
  67. !:strength - 15
  68. >0 use \^new-dump-be
  69. 24 lelong 60011 old-fs dump file (little endian),
  70. >0 use \^old-dump-be
  71. 24 belong 0x19540119 new-fs dump file (ufs2, big endian),
  72. >0 use ufs2-dump-be
  73. 24 lelong 0x19540119 new-fs dump file (ufs2, little endian),
  74. >0 use \^ufs2-dump-be
  75. 18 leshort 60011 old-fs dump file (16-bit, assuming PDP-11 endianness),
  76. >2 medate x Previous dump %s,
  77. >6 medate x This dump %s,
  78. >10 leshort >0 Volume %d,
  79. >0 leshort 1 tape header.
  80. >0 leshort 2 beginning of file record.
  81. >0 leshort 3 map of inodes on tape.
  82. >0 leshort 4 continuation of file record.
  83. >0 leshort 5 end of volume.
  84. >0 leshort 6 map of inodes deleted.
  85. >0 leshort 7 end of medium (for floppy).