xref: /freebsd/contrib/file/magic/Magdir/dump (revision 76f2606181eabc8ab20aa7297bbddc6e78bb549d)
1
2#------------------------------------------------------------------------------
3# $File: dump,v 1.17 2018/06/26 01:07:17 christos Exp $
4# dump:  file(1) magic for dump file format--for new and old dump filesystems
5#
6# We specify both byte orders in order to recognize byte-swapped dumps.
7#
80	name	new-dump-be
9>4	bedate	x		This dump %s,
10>8	bedate	x		Previous 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
26
270	name	old-dump-be
28#>4	bedate	x		This dump %s,
29#>8	bedate	x		Previous 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
45
460	name	ufs2-dump-be
47>896	beqdate	x		This dump %s,
48>904	beqdate	x		Previous 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
64
6524	belong	60012		new-fs dump file (big endian),
66>0	use	new-dump-be
67
6824	belong	60011		old-fs dump file (big endian),
69>0	use	old-dump-be
70
7124	lelong	60012		new-fs dump file (little endian),
72# to correctly recognize '*.mo' GNU message catalog (little endian)
73!:strength - 15
74>0	use	\^new-dump-be
75
7624	lelong	60011		old-fs dump file (little endian),
77>0	use	\^old-dump-be
78
79
8024	belong	0x19540119	new-fs dump file (ufs2, big endian),
81>0	use	ufs2-dump-be
82
8324	lelong	0x19540119	new-fs dump file (ufs2, little endian),
84>0	use	\^ufs2-dump-be
85
8618	leshort	60011		old-fs dump file (16-bit, assuming PDP-11 endianness),
87>2	medate	x		Previous dump %s,
88>6	medate	x		This dump %s,
89>10	leshort	>0		Volume %d,
90>0	leshort	1		tape header.
91>0	leshort	2		beginning of file record.
92>0	leshort	3		map of inodes on tape.
93>0	leshort	4		continuation of file record.
94>0	leshort	5		end of volume.
95>0	leshort	6		map of inodes deleted.
96>0	leshort	7		end of medium (for floppy).
97