fix container tag count being interpreted as extent count
This commit is contained in:
@@ -133,7 +133,7 @@ static int query(
|
|||||||
|
|
||||||
printf("\nextents:\n");
|
printf("\nextents:\n");
|
||||||
const struct ec3_extent_info *extents = ec3_reader_get_extents(reader);
|
const struct ec3_extent_info *extents = ec3_reader_get_extents(reader);
|
||||||
for (unsigned int i = 0; i < c_info->c_nr_tags; i++) {
|
for (unsigned int i = 0; i < c_info->c_nr_extents; i++) {
|
||||||
char tag_id[32];
|
char tag_id[32];
|
||||||
ec3_identifier_to_string(
|
ec3_identifier_to_string(
|
||||||
extents[i].ex_owner,
|
extents[i].ex_owner,
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ static void decode_header(const struct ec3_header *in, struct ec3_reader *out)
|
|||||||
out->c_info.c_cluster_table_offset
|
out->c_info.c_cluster_table_offset
|
||||||
= b_i64_btoh(in->h_cluster_table_offset);
|
= b_i64_btoh(in->h_cluster_table_offset);
|
||||||
out->c_info.c_nr_tags = b_i32_btoh(in->h_tag_count);
|
out->c_info.c_nr_tags = b_i32_btoh(in->h_tag_count);
|
||||||
out->c_info.c_nr_extents = b_i32_btoh(in->h_tag_count);
|
out->c_info.c_nr_extents = b_i32_btoh(in->h_extent_count);
|
||||||
out->c_info.c_nr_cluster_groups = b_i32_btoh(in->h_cluster_group_count);
|
out->c_info.c_nr_cluster_groups = b_i32_btoh(in->h_cluster_group_count);
|
||||||
out->c_info.c_encryption_function = b_i16_btoh(in->h_encryption);
|
out->c_info.c_encryption_function = b_i16_btoh(in->h_encryption);
|
||||||
out->c_info.c_compression_function = b_i16_btoh(in->h_compression);
|
out->c_info.c_compression_function = b_i16_btoh(in->h_compression);
|
||||||
|
|||||||
Reference in New Issue
Block a user