blob: c5462205e8814281b3636957d912591040813f54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
.TH DIFF-DD 5
.SH NAME
diff-dd \- the file formats
.SH DESCRIPTION
This manual page describes the current and the previous formats of \%diff-dd\:
differential images.
.SS Format v2
.I i
is an index of data in a differential image starting from 0.
.I si
is a size of data
.I i
in bytes.
.I s
is greater or equal 1, and less than or equal the buffer size.
The multibyte values are big-endian. This is different from the Format
v1. Big-endian values are easier to read by humans when examining the image
files.
.TS
tab(;) allbox;
l l l
l l l
l l l
l l l
l l l
l l l
l l l
l l l
l l l
l s s
l l l.
T{
.B Offset (bytes)
T};T{
.B Size (bytes)
T};T{
.B Description
T}
.\" --------
0;13;T{
File signature (magic number). ASCII string without terminating null byte. Value "diff-dd image".
T}
13;1;T{
Format version. Unsigned integer. Value 2.
T}
.\" --------
14;8;T{
Offset of data 0 in the output file
T}
22;4;Size of data 0
26;T{
.I s0
T};Data 0
.\" --------
T{
26 +
.I s0
T};8;T{
Offset of data 1 in the output file
T}
T{
34 +
.I s0
T};4;Size of data 1
T{
38 +
.I s0
T};T{
.I s1
T};Data 1
.\" --------
\[char46]\[char46]\[char46]
.\" --------
T{
14 + (12 *
.I i
) +
.I s0
+
.I s1
+
\[char46]\[char46]\[char46]
+
.I s(i-1)
T};8;T{
Offset of data
.I i
in the output file
T}
T{
14 + (20 *
.I i
) +
.I s0
+
.I s1
+
\[char46]\[char46]\[char46]
+
.I s(i-1)
T};4;T{
Size of data
.I i
T}
T{
14 + (24 *
.I i
) +
.I s0
+
.I s1
+
\[char46]\[char46]\[char46]
+
.I s(i-1)
T};T{
.I si
T};T{
Data
.I i
T}
.TE
.SS Format v1 (Deprecated)
This format was being used by diff-dd major version 2.
.I s
is a sector size in bytes specified by the user on the command line when the
image was being created.
.I s
is greater or equal 1.
.I i
is an index of data in a differential image starting from 0.
The offsets are 64-bit little-endian.
.TS
tab(;) allbox;
l l l
l l l
l l l
l l l
l l l
l s s
l l l.
T{
.B Offset (bytes)
T};T{
.B Size (bytes)
T};T{
.B Description
T}
.\" --------
0;8;Offset of data 0 in the output file
8;T{
.I s
T};Data 0
.\" --------
T{
8 +
.I s
T};8;Offset of data 1 in the output file
T{
16 +
.I s
T};T{
.I s
T};Data 1
.\" --------
\[char46]\[char46]\[char46]
.\" --------
T{
(8 +
.I s
) *
.I i
T};8;T{
Offset of data
.I i
in the output file
T}
T{
(8 +
.I s
) *
.I i
+ 8
T};T{
.I s
T};T{
Data
.I i
T}
.TE
|