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