- /* Checks for struct update */
- LASSERTF((int)sizeof(struct update) == 56, "found %lld\n",
- (long long)(int)sizeof(struct update));
- LASSERTF((int)offsetof(struct update, u_type) == 0, "found %lld\n",
- (long long)(int)offsetof(struct update, u_type));
- LASSERTF((int)sizeof(((struct update *)0)->u_type) == 4, "found %lld\n",
- (long long)(int)sizeof(((struct update *)0)->u_type));
- LASSERTF((int)offsetof(struct update, u_batchid) == 4, "found %lld\n",
- (long long)(int)offsetof(struct update, u_batchid));
- LASSERTF((int)sizeof(((struct update *)0)->u_batchid) == 4, "found %lld\n",
- (long long)(int)sizeof(((struct update *)0)->u_batchid));
- LASSERTF((int)offsetof(struct update, u_fid) == 8, "found %lld\n",
- (long long)(int)offsetof(struct update, u_fid));
- LASSERTF((int)sizeof(((struct update *)0)->u_fid) == 16, "found %lld\n",
- (long long)(int)sizeof(((struct update *)0)->u_fid));
- LASSERTF((int)offsetof(struct update, u_lens) == 24, "found %lld\n",
- (long long)(int)offsetof(struct update, u_lens));
- LASSERTF((int)sizeof(((struct update *)0)->u_lens) == 32, "found %lld\n",
- (long long)(int)sizeof(((struct update *)0)->u_lens));
- LASSERTF((int)offsetof(struct update, u_bufs) == 56, "found %lld\n",
- (long long)(int)offsetof(struct update, u_bufs));
- LASSERTF((int)sizeof(((struct update *)0)->u_bufs) == 0, "found %lld\n",
- (long long)(int)sizeof(((struct update *)0)->u_bufs));
+ /* Checks for struct object_update_request */
+ LASSERTF((int)sizeof(struct object_update_request) == 8, "found %lld\n",
+ (long long)(int)sizeof(struct object_update_request));
+ LASSERTF((int)offsetof(struct object_update_request, ourq_magic) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_request, ourq_magic));
+ LASSERTF((int)sizeof(((struct object_update_request *)0)->ourq_magic) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_request *)0)->ourq_magic));
+ LASSERTF((int)offsetof(struct object_update_request, ourq_count) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_request, ourq_count));
+ LASSERTF((int)sizeof(((struct object_update_request *)0)->ourq_count) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_request *)0)->ourq_count));
+ LASSERTF((int)offsetof(struct object_update_request, ourq_padding) == 6, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_request, ourq_padding));
+ LASSERTF((int)sizeof(((struct object_update_request *)0)->ourq_padding) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_request *)0)->ourq_padding));
+ LASSERTF((int)offsetof(struct object_update_request, ourq_updates) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_request, ourq_updates));
+ LASSERTF((int)sizeof(((struct object_update_request *)0)->ourq_updates) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_request *)0)->ourq_updates));
+
+ /* Checks for struct object_update_result */
+ LASSERTF((int)sizeof(struct object_update_result) == 8, "found %lld\n",
+ (long long)(int)sizeof(struct object_update_result));
+ LASSERTF((int)offsetof(struct object_update_result, our_rc) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_result, our_rc));
+ LASSERTF((int)sizeof(((struct object_update_result *)0)->our_rc) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_result *)0)->our_rc));
+ LASSERTF((int)offsetof(struct object_update_result, our_datalen) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_result, our_datalen));
+ LASSERTF((int)sizeof(((struct object_update_result *)0)->our_datalen) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_result *)0)->our_datalen));
+ LASSERTF((int)offsetof(struct object_update_result, our_padding) == 6, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_result, our_padding));
+ LASSERTF((int)sizeof(((struct object_update_result *)0)->our_padding) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_result *)0)->our_padding));
+ LASSERTF((int)offsetof(struct object_update_result, our_data) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_result, our_data));
+ LASSERTF((int)sizeof(((struct object_update_result *)0)->our_data) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_result *)0)->our_data));
+
+ /* Checks for struct object_update_reply */
+ LASSERTF((int)sizeof(struct object_update_reply) == 8, "found %lld\n",
+ (long long)(int)sizeof(struct object_update_reply));
+ LASSERTF((int)offsetof(struct object_update_reply, ourp_magic) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_reply, ourp_magic));
+ LASSERTF((int)sizeof(((struct object_update_reply *)0)->ourp_magic) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_reply *)0)->ourp_magic));
+ LASSERTF((int)offsetof(struct object_update_reply, ourp_count) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_reply, ourp_count));
+ LASSERTF((int)sizeof(((struct object_update_reply *)0)->ourp_count) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_reply *)0)->ourp_count));
+ LASSERTF((int)offsetof(struct object_update_reply, ourp_padding) == 6, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_reply, ourp_padding));
+ LASSERTF((int)sizeof(((struct object_update_reply *)0)->ourp_padding) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_reply *)0)->ourp_padding));
+ LASSERTF((int)offsetof(struct object_update_reply, ourp_lens) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_reply, ourp_lens));
+ LASSERTF((int)sizeof(((struct object_update_reply *)0)->ourp_lens) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_reply *)0)->ourp_lens));