Lines Matching refs:Object
113 static int hash_payload(JournalFile *f, Object *o, uint64_t offset, const uint8_t *src, uint64_t si… in hash_payload()
142 static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o) { in journal_file_object_verify()
173 if (le64toh(o->object.size) - offsetof(Object, data.payload) <= 0) { in journal_file_object_verify()
175 offsetof(Object, data.payload), in journal_file_object_verify()
182 le64toh(o->object.size) - offsetof(Object, data.payload), in journal_file_object_verify()
211 if (le64toh(o->object.size) - offsetof(Object, field.payload) <= 0) { in journal_file_object_verify()
214 offsetof(Object, field.payload), in journal_file_object_verify()
221 le64toh(o->object.size) - offsetof(Object, field.payload), in journal_file_object_verify()
243 … if ((le64toh(o->object.size) - offsetof(Object, entry.items)) % sizeof(EntryItem) != 0) { in journal_file_object_verify()
246 offsetof(Object, entry.items), in journal_file_object_verify()
251 … if ((le64toh(o->object.size) - offsetof(Object, entry.items)) / sizeof(EntryItem) <= 0) { in journal_file_object_verify()
254 … (le64toh(o->object.size) - offsetof(Object, entry.items)) / sizeof(EntryItem)); in journal_file_object_verify()
294 … if ((le64toh(o->object.size) - offsetof(Object, hash_table.items)) % sizeof(HashItem) != 0 || in journal_file_object_verify()
295 … (le64toh(o->object.size) - offsetof(Object, hash_table.items)) / sizeof(HashItem) <= 0) { in journal_file_object_verify()
338 … if ((le64toh(o->object.size) - offsetof(Object, entry_array.items)) % sizeof(le64_t) != 0 || in journal_file_object_verify()
339 … (le64toh(o->object.size) - offsetof(Object, entry_array.items)) / sizeof(le64_t) <= 0) { in journal_file_object_verify()
428 Object *o, uint64_t p, in verify_data()
561 Object *o; in verify_data_hash_table()
621 Object *o; in data_object_in_hash_table()
638 Object *o, uint64_t p, in verify_entry()
652 Object *u; in verify_entry()
710 Object *o; in verify_entry_array()
772 … Object *o, uint64_t p, uint64_t *n_hash_tables, uint64_t header_offset, uint64_t header_size) { in verify_hash_table()
785 if (header_offset != p + offsetof(Object, hash_table.items)) { in verify_hash_table()
790 p + offsetof(Object, hash_table.items)); in verify_hash_table()
794 if (header_size != le64toh(o->object.size) - offsetof(Object, hash_table.items)) { in verify_hash_table()
799 le64toh(o->object.size) - offsetof(Object, hash_table.items)); in verify_hash_table()
814 Object *o; in journal_file_verify()