- /* Checks for struct lustre_msg_v1 */
- LASSERTF((int)sizeof(struct lustre_msg_v1) == 64, " found %lld\n",
- (long long)(int)sizeof(struct lustre_msg_v1));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_handle) == 0, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_handle));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_handle) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_handle));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_magic) == 8, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_magic));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_magic) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_magic));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_type) == 12, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_type));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_type) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_type));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_version) == 16, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_version));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_version) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_version));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_opc) == 20, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_opc));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_opc) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_opc));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_last_xid) == 24, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_last_xid));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_last_xid) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_last_xid));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_last_committed) == 32, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_last_committed));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_last_committed) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_last_committed));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_transno) == 40, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_transno));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_transno) == 8, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_transno));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_status) == 48, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_status));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_status) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_status));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_flags) == 52, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_flags));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_flags) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_flags));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_conn_cnt) == 56, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_conn_cnt));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_conn_cnt) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_conn_cnt));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_bufcount) == 60, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_bufcount));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_bufcount) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_bufcount));
- LASSERTF((int)offsetof(struct lustre_msg_v1, lm_buflens[0]) == 64, " found %lld\n",
- (long long)(int)offsetof(struct lustre_msg_v1, lm_buflens[0]));
- LASSERTF((int)sizeof(((struct lustre_msg_v1 *)0)->lm_buflens[0]) == 4, " found %lld\n",
- (long long)(int)sizeof(((struct lustre_msg_v1 *)0)->lm_buflens[0]));
-