168349Sobrien
268349Sobrien#------------------------------------------------------------------------------
3267843Sdelphij# $File: dump,v 1.13 2014/04/30 21:41:02 christos Exp $
468349Sobrien# dump:  file(1) magic for dump file format--for new and old dump filesystems
568349Sobrien#
668349Sobrien# We specify both byte orders in order to recognize byte-swapped dumps.
768349Sobrien#
8267843Sdelphij0	name	new-dump-be
968349Sobrien>4	bedate	x		Previous dump %s,
1068349Sobrien>8	bedate	x		This dump %s,
11267843Sdelphij>12	belong	>0		Volume %d,
1268349Sobrien>692	belong	0		Level zero, type:
1368349Sobrien>692	belong	>0		Level %d, type:
1468349Sobrien>0	belong	1		tape header,
1568349Sobrien>0	belong	2		beginning of file record,
1668349Sobrien>0	belong	3		map of inodes on tape,
1768349Sobrien>0	belong	4		continuation of file record,
1868349Sobrien>0	belong	5		end of volume,
1968349Sobrien>0	belong	6		map of inodes deleted,
2068349Sobrien>0	belong	7		end of medium (for floppy),
2168349Sobrien>676	string	>\0		Label %s,
2268349Sobrien>696	string	>\0		Filesystem %s,
2368349Sobrien>760	string	>\0		Device %s,
2468349Sobrien>824	string	>\0		Host %s,
2568349Sobrien>888	belong	>0		Flags %x
2668349Sobrien
27267843Sdelphij0	name	old-dump-be
2868349Sobrien#>4	bedate	x		Previous dump %s,
2968349Sobrien#>8	bedate	x		This dump %s,
30267843Sdelphij>12	belong	>0		Volume %d,
3168349Sobrien>692	belong	0		Level zero, type:
3268349Sobrien>692	belong	>0		Level %d, type:
3368349Sobrien>0	belong	1		tape header,
3468349Sobrien>0	belong	2		beginning of file record,
3568349Sobrien>0	belong	3		map of inodes on tape,
3668349Sobrien>0	belong	4		continuation of file record,
3768349Sobrien>0	belong	5		end of volume,
3868349Sobrien>0	belong	6		map of inodes deleted,
3968349Sobrien>0	belong	7		end of medium (for floppy),
4068349Sobrien>676	string	>\0		Label %s,
4168349Sobrien>696	string	>\0		Filesystem %s,
4268349Sobrien>760	string	>\0		Device %s,
4368349Sobrien>824	string	>\0		Host %s,
4468349Sobrien>888	belong	>0		Flags %x
4568349Sobrien
46267843Sdelphij0	name	ufs2-dump-be
47186690Sobrien>896	beqdate	x		Previous dump %s,
48186690Sobrien>904	beqdate	x		This dump %s,
49267843Sdelphij>12	belong	>0		Volume %d,
50186690Sobrien>692	belong	0		Level zero, type:
51186690Sobrien>692	belong	>0		Level %d, type:
52186690Sobrien>0	belong	1		tape header,
53186690Sobrien>0	belong	2		beginning of file record,
54186690Sobrien>0	belong	3		map of inodes on tape,
55186690Sobrien>0	belong	4		continuation of file record,
56186690Sobrien>0	belong	5		end of volume,
57186690Sobrien>0	belong	6		map of inodes deleted,
58186690Sobrien>0	belong	7		end of medium (for floppy),
59186690Sobrien>676	string	>\0		Label %s,
60186690Sobrien>696	string	>\0		Filesystem %s,
61186690Sobrien>760	string	>\0		Device %s,
62186690Sobrien>824	string	>\0		Host %s,
63186690Sobrien>888	belong	>0		Flags %x
64186690Sobrien
65267843Sdelphij24	belong	60012		new-fs dump file (big endian), 
66267843Sdelphij>0	use	new-dump-be
67267843Sdelphij
68267843Sdelphij24	belong	60011		old-fs dump file (big endian), 
69267843Sdelphij>0	use	old-dump-be
70267843Sdelphij
71267843Sdelphij24	lelong	60012		new-fs dump file (little endian), 
72267843Sdelphij>0	use	\^new-dump-be
73267843Sdelphij
74267843Sdelphij24	lelong	60011		old-fs dump file (little endian), 
75267843Sdelphij>0	use	\^old-dump-be
76267843Sdelphij
77267843Sdelphij
78267843Sdelphij24	belong	0x19540119	new-fs dump file (ufs2, big endian), 
79267843Sdelphij>0	use	ufs2-dump-be
80267843Sdelphij
81267843Sdelphij24	lelong	0x19540119	new-fs dump file (ufs2, little endian), 
82267843Sdelphij>0	use	\^ufs2-dump-be
83267843Sdelphij
84267843Sdelphij18	leshort	60011		old-fs dump file (16-bit, assuming PDP-11 endianness),
85267843Sdelphij>2	medate	x		Previous dump %s,
86267843Sdelphij>6	medate	x		This dump %s,
87267843Sdelphij>10	leshort	>0		Volume %d,
88267843Sdelphij>0	leshort	1		tape header.
89267843Sdelphij>0	leshort	2		beginning of file record.
90267843Sdelphij>0	leshort	3		map of inodes on tape.
91267843Sdelphij>0	leshort	4		continuation of file record.
92267843Sdelphij>0	leshort	5		end of volume.
93267843Sdelphij>0	leshort	6		map of inodes deleted.
94267843Sdelphij>0	leshort	7		end of medium (for floppy).
95