2 #------------------------------------------------------------------------------
3 # $File: dump,v 1.13 2014/04/30 21:41:02 christos Exp $
4 # dump: file(1) magic for dump file format--for new and old dump filesystems
6 # We specify both byte orders in order to recognize byte-swapped dumps.
9 >4 bedate x Previous dump %s,
10 >8 bedate x This dump %s,
11 >12 belong >0 Volume %d,
12 >692 belong 0 Level zero, type:
13 >692 belong >0 Level %d, type:
14 >0 belong 1 tape header,
15 >0 belong 2 beginning of file record,
16 >0 belong 3 map of inodes on tape,
17 >0 belong 4 continuation of file record,
18 >0 belong 5 end of volume,
19 >0 belong 6 map of inodes deleted,
20 >0 belong 7 end of medium (for floppy),
21 >676 string >\0 Label %s,
22 >696 string >\0 Filesystem %s,
23 >760 string >\0 Device %s,
24 >824 string >\0 Host %s,
25 >888 belong >0 Flags %x
28 #>4 bedate x Previous dump %s,
29 #>8 bedate x This dump %s,
30 >12 belong >0 Volume %d,
31 >692 belong 0 Level zero, type:
32 >692 belong >0 Level %d, type:
33 >0 belong 1 tape header,
34 >0 belong 2 beginning of file record,
35 >0 belong 3 map of inodes on tape,
36 >0 belong 4 continuation of file record,
37 >0 belong 5 end of volume,
38 >0 belong 6 map of inodes deleted,
39 >0 belong 7 end of medium (for floppy),
40 >676 string >\0 Label %s,
41 >696 string >\0 Filesystem %s,
42 >760 string >\0 Device %s,
43 >824 string >\0 Host %s,
44 >888 belong >0 Flags %x
47 >896 beqdate x Previous dump %s,
48 >904 beqdate x This dump %s,
49 >12 belong >0 Volume %d,
50 >692 belong 0 Level zero, type:
51 >692 belong >0 Level %d, type:
52 >0 belong 1 tape header,
53 >0 belong 2 beginning of file record,
54 >0 belong 3 map of inodes on tape,
55 >0 belong 4 continuation of file record,
56 >0 belong 5 end of volume,
57 >0 belong 6 map of inodes deleted,
58 >0 belong 7 end of medium (for floppy),
59 >676 string >\0 Label %s,
60 >696 string >\0 Filesystem %s,
61 >760 string >\0 Device %s,
62 >824 string >\0 Host %s,
63 >888 belong >0 Flags %x
65 24 belong 60012 new-fs dump file (big endian),
68 24 belong 60011 old-fs dump file (big endian),
71 24 lelong 60012 new-fs dump file (little endian),
74 24 lelong 60011 old-fs dump file (little endian),
78 24 belong 0x19540119 new-fs dump file (ufs2, big endian),
81 24 lelong 0x19540119 new-fs dump file (ufs2, little endian),
84 18 leshort 60011 old-fs dump file (16-bit, assuming PDP-11 endianness),
85 >2 medate x Previous dump %s,
86 >6 medate x This dump %s,
87 >10 leshort >0 Volume %d,
88 >0 leshort 1 tape header.
89 >0 leshort 2 beginning of file record.
90 >0 leshort 3 map of inodes on tape.
91 >0 leshort 4 continuation of file record.
92 >0 leshort 5 end of volume.
93 >0 leshort 6 map of inodes deleted.
94 >0 leshort 7 end of medium (for floppy).