Merge branch 'vendor/FILE'
[dragonfly.git] / contrib / file / magic / Magdir / dump
1
2 #------------------------------------------------------------------------------
3 # $File: dump,v 1.12 2012/11/01 04:26:40 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 #
8 0       name    new-dump-be
9 >4      bedate  x               Previous dump %s,
10 >8      bedate  x               This dump %s,
11 >12     belong  >0              Volume %ld,
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
27 0       name    old-dump-be
28 #>4     bedate  x               Previous dump %s,
29 #>8     bedate  x               This dump %s,
30 >12     belong  >0              Volume %ld,
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
46 0       name    ufs2-dump-be
47 >896    beqdate x               Previous dump %s,
48 >904    beqdate x               This dump %s,
49 >12     belong  >0              Volume %ld,
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
65 24      belong  60012           new-fs dump file (big endian), 
66 >0      use     new-dump-be
67
68 24      belong  60011           old-fs dump file (big endian), 
69 >0      use     old-dump-be
70
71 24      lelong  60012           new-fs dump file (little endian), 
72 >0      use     \^new-dump-be
73
74 24      lelong  60011           old-fs dump file (little endian), 
75 >0      use     \^old-dump-be
76
77
78 24      belong  0x19540119      new-fs dump file (ufs2, big endian), 
79 >0      use     ufs2-dump-be
80
81 24      lelong  0x19540119      new-fs dump file (ufs2, little endian), 
82 >0      use     \^ufs2-dump-be
83
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 %ld,
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).