Lines Matching refs:object
126 if ((o->object.flags & OBJECT_COMPRESSED_XZ) &&
127 o->object.type != OBJECT_DATA) {
128 error(offset, "Found compressed object that isn't of type DATA, which is not allowed.");
132 switch (o->object.type) {
146 if (le64toh(o->object.size) - offsetof(DataObject, payload) <= 0) {
147 error(offset, "Bad object size (<= %zu): %"PRIu64,
149 le64toh(o->object.size));
155 compression = o->object.flags & OBJECT_COMPRESSION_MASK;
162 le64toh(o->object.size) - offsetof(Object, data.payload),
172 h2 = hash64(o->data.payload, le64toh(o->object.size) - offsetof(Object, data.payload));
195 if (le64toh(o->object.size) - offsetof(FieldObject, payload) <= 0) {
199 le64toh(o->object.size));
214 if ((le64toh(o->object.size) - offsetof(EntryObject, items)) % sizeof(EntryItem) != 0) {
218 le64toh(o->object.size));
222 if ((le64toh(o->object.size) - offsetof(EntryObject, items)) / sizeof(EntryItem) <= 0) {
225 (le64toh(o->object.size) - offsetof(EntryObject, items)) / sizeof(EntryItem));
265 if ((le64toh(o->object.size) - offsetof(HashTableObject, items)) % sizeof(HashItem) != 0 ||
266 (le64toh(o->object.size) - offsetof(HashTableObject, items)) / sizeof(HashItem) <= 0) {
269 o->object.type == OBJECT_DATA_HASH_TABLE ? "data" : "field",
270 le64toh(o->object.size));
279 o->object.type == OBJECT_DATA_HASH_TABLE ? "data" : "field",
288 o->object.type == OBJECT_DATA_HASH_TABLE ? "data" : "field",
298 o->object.type == OBJECT_DATA_HASH_TABLE ? "data" : "field",
309 if ((le64toh(o->object.size) - offsetof(EntryArrayObject, items)) % sizeof(le64_t) != 0 ||
310 (le64toh(o->object.size) - offsetof(EntryArrayObject, items)) / sizeof(le64_t) <= 0) {
312 "Invalid object entry array size: %"PRIu64,
313 le64toh(o->object.size));
319 "Invalid object entry array next_entry_array_offset: "OFSfmt,
328 "Invalid object entry array item (%"PRIu64"/%"PRIu64"): "OFSfmt,
337 if (le64toh(o->object.size) != sizeof(TagObject)) {
339 "Invalid object tag size: %"PRIu64,
340 le64toh(o->object.size));
346 "Invalid object tag epoch: %"PRIu64,
419 error(data_p, "Data object references invalid entry at "OFSfmt, entry_p);
435 error(entry_p, "Data object at "OFSfmt" not referenced by linked entry", data_p);
478 error(entry_p, "Entry object doesn't exist in main entry array");
552 error(p, "Data object's entry array not sorted");
610 error(p, "Invalid data object at hash entry %"PRIu64" of %"PRIu64, i, n);
699 error(p, "Invalid data object of entry");
708 error(p, "Hash mismatch for data object of entry");
716 error(p, "Data object missing from hash table");
887 error(p, "Invalid object");
892 error(offsetof(Header, tail_object_offset), "Invalid tail object pointer");
901 error(p, "Invalid object contents: %s", strerror(-r));
905 if ((o->object.flags & OBJECT_COMPRESSED_XZ) &&
906 (o->object.flags & OBJECT_COMPRESSED_LZ4)) {
912 if ((o->object.flags & OBJECT_COMPRESSED_XZ) && !JOURNAL_HEADER_COMPRESSED_XZ(f->header)) {
913 error(p, "XZ compressed object in file without XZ compression");
918 if ((o->object.flags & OBJECT_COMPRESSED_LZ4) && !JOURNAL_HEADER_COMPRESSED_LZ4(f->header)) {
919 error(p, "LZ4 compressed object in file without LZ4 compression");
924 switch (o->object.type) {
1005 le64toh(f->header->data_hash_table_size) != le64toh(o->object.size) - offsetof(HashTableObject, items)) {
1022 le64toh(f->header->field_hash_table_size) != le64toh(o->object.size) - offsetof(HashTableObject, items)) {
1051 error(p, "Tag object in file without sealing");
1110 q = q + ALIGN64(le64toh(o->object.size));
1129 last_tag = p + ALIGN64(le64toh(o->object.size));
1146 p = p + ALIGN64(le64toh(o->object.size));
1150 error(le64toh(f->header->tail_object_offset), "Tail object pointer dead");
1223 * two entry points: the object hash table and the entry