~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to grub-core/fs/udf.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-12-26 00:52:47 UTC
  • mto: (17.6.37 experimental)
  • mto: This revision was merged to the branch mainline in revision 184.
  • Revision ID: package-import@ubuntu.com-20131226005247-dalaa9te0g0d49kd
Tags: upstream-2.02~beta2
ImportĀ upstreamĀ versionĀ 2.02~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
{
118
118
  grub_uint32_t block_num;
119
119
  grub_uint16_t part_ref;
120
 
} __attribute__ ((packed));
 
120
} GRUB_PACKED;
121
121
 
122
122
struct grub_udf_short_ad
123
123
{
124
124
  grub_uint32_t length;
125
125
  grub_uint32_t position;
126
 
} __attribute__ ((packed));
 
126
} GRUB_PACKED;
127
127
 
128
128
struct grub_udf_long_ad
129
129
{
130
130
  grub_uint32_t length;
131
131
  struct grub_udf_lb_addr block;
132
132
  grub_uint8_t imp_use[6];
133
 
} __attribute__ ((packed));
 
133
} GRUB_PACKED;
134
134
 
135
135
struct grub_udf_extent_ad
136
136
{
137
137
  grub_uint32_t length;
138
138
  grub_uint32_t start;
139
 
} __attribute__ ((packed));
 
139
} GRUB_PACKED;
140
140
 
141
141
struct grub_udf_charspec
142
142
{
143
143
  grub_uint8_t charset_type;
144
144
  grub_uint8_t charset_info[63];
145
 
} __attribute__ ((packed));
 
145
} GRUB_PACKED;
146
146
 
147
147
struct grub_udf_timestamp
148
148
{
156
156
  grub_uint8_t centi_seconds;
157
157
  grub_uint8_t hundreds_of_micro_seconds;
158
158
  grub_uint8_t micro_seconds;
159
 
} __attribute__ ((packed));
 
159
} GRUB_PACKED;
160
160
 
161
161
struct grub_udf_regid
162
162
{
163
163
  grub_uint8_t flags;
164
164
  grub_uint8_t ident[23];
165
165
  grub_uint8_t ident_suffix[8];
166
 
} __attribute__ ((packed));
 
166
} GRUB_PACKED;
167
167
 
168
168
struct grub_udf_tag
169
169
{
175
175
  grub_uint16_t desc_crc;
176
176
  grub_uint16_t desc_crc_length;
177
177
  grub_uint32_t tag_location;
178
 
} __attribute__ ((packed));
 
178
} GRUB_PACKED;
179
179
 
180
180
struct grub_udf_fileset
181
181
{
197
197
  struct grub_udf_regid domain_ident;
198
198
  struct grub_udf_long_ad next_ext;
199
199
  struct grub_udf_long_ad streamdir_icb;
200
 
} __attribute__ ((packed));
 
200
} GRUB_PACKED;
201
201
 
202
202
struct grub_udf_icbtag
203
203
{
209
209
  grub_uint8_t file_type;
210
210
  struct grub_udf_lb_addr parent_idb;
211
211
  grub_uint16_t flags;
212
 
} __attribute__ ((packed));
 
212
} GRUB_PACKED;
213
213
 
214
214
struct grub_udf_file_ident
215
215
{
220
220
  grub_uint8_t file_ident_length;
221
221
  struct grub_udf_long_ad icb;
222
222
  grub_uint16_t imp_use_length;
223
 
} __attribute__ ((packed));
 
223
} GRUB_PACKED;
224
224
 
225
225
struct grub_udf_file_entry
226
226
{
245
245
  grub_uint32_t ext_attr_length;
246
246
  grub_uint32_t alloc_descs_length;
247
247
  grub_uint8_t ext_attr[0];
248
 
} __attribute__ ((packed));
 
248
} GRUB_PACKED;
249
249
 
250
250
struct grub_udf_extended_file_entry
251
251
{
274
274
  grub_uint32_t ext_attr_length;
275
275
  grub_uint32_t alloc_descs_length;
276
276
  grub_uint8_t ext_attr[0];
277
 
} __attribute__ ((packed));
 
277
} GRUB_PACKED;
278
278
 
279
279
struct grub_udf_vrs
280
280
{
281
281
  grub_uint8_t type;
282
282
  grub_uint8_t magic[5];
283
283
  grub_uint8_t version;
284
 
} __attribute__ ((packed));
 
284
} GRUB_PACKED;
285
285
 
286
286
struct grub_udf_avdp
287
287
{
288
288
  struct grub_udf_tag tag;
289
289
  struct grub_udf_extent_ad vds;
290
 
} __attribute__ ((packed));
 
290
} GRUB_PACKED;
291
291
 
292
292
struct grub_udf_pd
293
293
{
300
300
  grub_uint32_t access_type;
301
301
  grub_uint32_t start;
302
302
  grub_uint32_t length;
303
 
} __attribute__ ((packed));
 
303
} GRUB_PACKED;
304
304
 
305
305
struct grub_udf_partmap
306
306
{
319
319
      grub_uint8_t ident[62];
320
320
    } type2;
321
321
  };
322
 
} __attribute__ ((packed));
 
322
} GRUB_PACKED;
323
323
 
324
324
struct grub_udf_lvd
325
325
{
336
336
  grub_uint8_t imp_use[128];
337
337
  struct grub_udf_extent_ad integrity_seq_ext;
338
338
  grub_uint8_t part_maps[1608];
339
 
} __attribute__ ((packed));
 
339
} GRUB_PACKED;
340
340
 
341
341
struct grub_udf_aed
342
342
{
343
343
  struct grub_udf_tag tag;
344
344
  grub_uint32_t prev_ae;
345
345
  grub_uint32_t ae_len;
346
 
} __attribute__ ((packed));
 
346
} GRUB_PACKED;
347
347
 
348
348
struct grub_udf_data
349
349
{