+ /* Checks for struct hsm_user_item */
+ LASSERTF((int)sizeof(struct hsm_user_item) == 32, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_user_item));
+ LASSERTF((int)offsetof(struct hsm_user_item, hui_fid) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_item, hui_fid));
+ LASSERTF((int)sizeof(((struct hsm_user_item *)0)->hui_fid) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_item *)0)->hui_fid));
+ LASSERTF((int)offsetof(struct hsm_user_item, hui_extent) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_item, hui_extent));
+ LASSERTF((int)sizeof(((struct hsm_user_item *)0)->hui_extent) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_item *)0)->hui_extent));
+
+ /* Checks for struct hsm_user_state */
+ LASSERTF((int)sizeof(struct hsm_user_state) == 32, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_user_state));
+ LASSERTF((int)offsetof(struct hsm_user_state, hus_states) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_state, hus_states));
+ LASSERTF((int)sizeof(((struct hsm_user_state *)0)->hus_states) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_state *)0)->hus_states));
+ LASSERTF((int)offsetof(struct hsm_user_state, hus_archive_id) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_state, hus_archive_id));
+ LASSERTF((int)sizeof(((struct hsm_user_state *)0)->hus_archive_id) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_state *)0)->hus_archive_id));
+ LASSERTF((int)offsetof(struct hsm_user_state, hus_in_progress_state) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_state, hus_in_progress_state));
+ LASSERTF((int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_state) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_state));
+ LASSERTF((int)offsetof(struct hsm_user_state, hus_in_progress_action) == 12, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_state, hus_in_progress_action));
+ LASSERTF((int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_action) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_action));
+ LASSERTF((int)offsetof(struct hsm_user_state, hus_in_progress_location) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_state, hus_in_progress_location));
+ LASSERTF((int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_location) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_state *)0)->hus_in_progress_location));
+
+ /* Checks for struct hsm_state_set */
+ LASSERTF((int)sizeof(struct hsm_state_set) == 24, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_state_set));
+ LASSERTF((int)offsetof(struct hsm_state_set, hss_valid) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_state_set, hss_valid));
+ LASSERTF((int)sizeof(((struct hsm_state_set *)0)->hss_valid) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_state_set *)0)->hss_valid));
+ LASSERTF((int)offsetof(struct hsm_state_set, hss_archive_id) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_state_set, hss_archive_id));
+ LASSERTF((int)sizeof(((struct hsm_state_set *)0)->hss_archive_id) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_state_set *)0)->hss_archive_id));
+ LASSERTF((int)offsetof(struct hsm_state_set, hss_setmask) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_state_set, hss_setmask));
+ LASSERTF((int)sizeof(((struct hsm_state_set *)0)->hss_setmask) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_state_set *)0)->hss_setmask));
+ LASSERTF((int)offsetof(struct hsm_state_set, hss_clearmask) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_state_set, hss_clearmask));
+ LASSERTF((int)sizeof(((struct hsm_state_set *)0)->hss_clearmask) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_state_set *)0)->hss_clearmask));
+
+ /* Checks for struct hsm_current_action */
+ LASSERTF((int)sizeof(struct hsm_current_action) == 24, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_current_action));
+ LASSERTF((int)offsetof(struct hsm_current_action, hca_state) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_current_action, hca_state));
+ LASSERTF((int)sizeof(((struct hsm_current_action *)0)->hca_state) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_current_action *)0)->hca_state));
+ LASSERTF((int)offsetof(struct hsm_current_action, hca_action) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_current_action, hca_action));
+ LASSERTF((int)sizeof(((struct hsm_current_action *)0)->hca_action) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_current_action *)0)->hca_action));
+ LASSERTF((int)offsetof(struct hsm_current_action, hca_location) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_current_action, hca_location));
+ LASSERTF((int)sizeof(((struct hsm_current_action *)0)->hca_location) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_current_action *)0)->hca_location));
+
+ /* Checks for struct hsm_request */
+ LASSERTF((int)sizeof(struct hsm_request) == 24, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_request));
+ LASSERTF((int)offsetof(struct hsm_request, hr_action) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_request, hr_action));
+ LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_action) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_request *)0)->hr_action));
+ LASSERTF((int)offsetof(struct hsm_request, hr_archive_id) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_request, hr_archive_id));
+ LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_archive_id) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_request *)0)->hr_archive_id));
+ LASSERTF((int)offsetof(struct hsm_request, hr_flags) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_request, hr_flags));
+ LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_flags) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_request *)0)->hr_flags));
+ LASSERTF((int)offsetof(struct hsm_request, hr_itemcount) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_request, hr_itemcount));
+ LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_itemcount) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_request *)0)->hr_itemcount));
+ LASSERTF((int)offsetof(struct hsm_request, hr_data_len) == 20, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_request, hr_data_len));
+ LASSERTF((int)sizeof(((struct hsm_request *)0)->hr_data_len) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_request *)0)->hr_data_len));
+ LASSERTF(HSM_FORCE_ACTION == 0x00000001UL, "found 0x%.8xUL\n",
+ (unsigned)HSM_FORCE_ACTION);
+ LASSERTF(HSM_GHOST_COPY == 0x00000002UL, "found 0x%.8xUL\n",
+ (unsigned)HSM_GHOST_COPY);
+
+ /* Checks for struct hsm_user_request */
+ LASSERTF((int)sizeof(struct hsm_user_request) == 24, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_user_request));
+ LASSERTF((int)offsetof(struct hsm_user_request, hur_request) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_request, hur_request));
+ LASSERTF((int)sizeof(((struct hsm_user_request *)0)->hur_request) == 24, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_request *)0)->hur_request));
+ LASSERTF((int)offsetof(struct hsm_user_request, hur_user_item) == 24, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_request, hur_user_item));
+ LASSERTF((int)sizeof(((struct hsm_user_request *)0)->hur_user_item) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_request *)0)->hur_user_item));
+
+ /* Checks for struct hsm_user_import */
+ LASSERTF((int)sizeof(struct hsm_user_import) == 48, "found %lld\n",
+ (long long)(int)sizeof(struct hsm_user_import));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_size) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_size));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_size) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_size));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_uid) == 32, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_uid));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_uid) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_uid));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_gid) == 36, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_gid));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_gid) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_gid));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_mode) == 40, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_mode));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_mode) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_mode));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_atime) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_atime));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_atime) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_atime));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_atime_ns) == 24, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_atime_ns));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_atime_ns) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_atime_ns));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_mtime) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_mtime));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_mtime) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_mtime));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_mtime_ns) == 28, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_mtime_ns));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_mtime_ns) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_mtime_ns));
+ LASSERTF((int)offsetof(struct hsm_user_import, hui_archive_id) == 44, "found %lld\n",
+ (long long)(int)offsetof(struct hsm_user_import, hui_archive_id));
+ LASSERTF((int)sizeof(((struct hsm_user_import *)0)->hui_archive_id) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct hsm_user_import *)0)->hui_archive_id));
+
+ /* Checks for struct object_update_param */
+ LASSERTF((int)sizeof(struct object_update_param) == 8, "found %lld\n",
+ (long long)(int)sizeof(struct object_update_param));
+ LASSERTF((int)offsetof(struct object_update_param, oup_len) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_param, oup_len));
+ LASSERTF((int)sizeof(((struct object_update_param *)0)->oup_len) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_param *)0)->oup_len));
+ LASSERTF((int)offsetof(struct object_update_param, oup_padding) == 2, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_param, oup_padding));
+ LASSERTF((int)sizeof(((struct object_update_param *)0)->oup_padding) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_param *)0)->oup_padding));
+ LASSERTF((int)offsetof(struct object_update_param, oup_padding2) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_param, oup_padding2));
+ LASSERTF((int)sizeof(((struct object_update_param *)0)->oup_padding2) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_param *)0)->oup_padding2));
+ LASSERTF((int)offsetof(struct object_update_param, oup_buf) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct object_update_param, oup_buf));
+ LASSERTF((int)sizeof(((struct object_update_param *)0)->oup_buf) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update_param *)0)->oup_buf));
+
+ /* Checks for struct object_update */
+ LASSERTF((int)sizeof(struct object_update) == 40, "found %lld\n",
+ (long long)(int)sizeof(struct object_update));
+ LASSERTF((int)offsetof(struct object_update, ou_type) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_type));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_type) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_type));
+ LASSERTF((int)offsetof(struct object_update, ou_params_count) == 2, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_params_count));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_params_count) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_params_count));
+ LASSERTF((int)offsetof(struct object_update, ou_master_index) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_master_index));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_master_index) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_master_index));
+ LASSERTF((int)offsetof(struct object_update, ou_flags) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_flags));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_flags) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_flags));
+ LASSERTF((int)offsetof(struct object_update, ou_padding1) == 12, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_padding1));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_padding1) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_padding1));
+ LASSERTF((int)offsetof(struct object_update, ou_batchid) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_batchid));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_batchid) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_batchid));
+ LASSERTF((int)offsetof(struct object_update, ou_fid) == 24, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_fid));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_fid) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_fid));
+ LASSERTF((int)offsetof(struct object_update, ou_params) == 40, "found %lld\n",
+ (long long)(int)offsetof(struct object_update, ou_params));
+ LASSERTF((int)sizeof(((struct object_update *)0)->ou_params) == 0, "found %lld\n",
+ (long long)(int)sizeof(((struct object_update *)0)->ou_params));
+
+ /* 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));
+
+ /* Checks for struct lfsck_request */
+ LASSERTF((int)sizeof(struct lfsck_request) == 96, "found %lld\n",
+ (long long)(int)sizeof(struct lfsck_request));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_event) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_event));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_event) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_event));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_index) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_index));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_index) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_index));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_flags) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_flags));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_flags) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_flags));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_valid) == 12, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_valid));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_valid) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_valid));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_speed) == 16, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_speed));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_speed) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_speed));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_version) == 20, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_version));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_version) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_version));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_active) == 22, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_active));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_active) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_active));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_param) == 24, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_param));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_param) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_param));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_async_windows) == 26, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_async_windows));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_async_windows) == 2, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_async_windows));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_padding_1) == 28, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_padding_1));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_1) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_1));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_fid) == 32, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_fid));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_fid) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_fid));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_fid2) == 48, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_fid2));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_fid2) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_fid2));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_fid3) == 64, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_fid3));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_fid3) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_fid3));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_padding_2) == 80, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_padding_2));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_2) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_2));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_padding_3) == 88, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_padding_3));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_3) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_3));
+ LASSERTF(LE_LASTID_REBUILDING == 1, "found %lld\n",
+ (long long)LE_LASTID_REBUILDING);
+ LASSERTF(LE_LASTID_REBUILT == 2, "found %lld\n",
+ (long long)LE_LASTID_REBUILT);
+ LASSERTF(LE_PHASE1_DONE == 3, "found %lld\n",
+ (long long)LE_PHASE1_DONE);
+ LASSERTF(LE_PHASE2_DONE == 4, "found %lld\n",
+ (long long)LE_PHASE2_DONE);
+ LASSERTF(LE_START == 5, "found %lld\n",
+ (long long)LE_START);
+ LASSERTF(LE_STOP == 6, "found %lld\n",
+ (long long)LE_STOP);
+ LASSERTF(LE_QUERY == 7, "found %lld\n",
+ (long long)LE_QUERY);
+ LASSERTF(LE_FID_ACCESSED == 8, "found %lld\n",
+ (long long)LE_FID_ACCESSED);
+ LASSERTF(LE_PEER_EXIT == 9, "found %lld\n",
+ (long long)LE_PEER_EXIT);
+ LASSERTF(LE_CONDITIONAL_DESTROY == 10, "found %lld\n",
+ (long long)LE_CONDITIONAL_DESTROY);
+ LASSERTF(LE_PAIRS_VERIFY == 11, "found %lld\n",
+ (long long)LE_PAIRS_VERIFY);
+ LASSERTF(LEF_TO_OST == 0x00000001UL, "found 0x%.8xUL\n",
+ (unsigned)LEF_TO_OST);
+ LASSERTF(LEF_FROM_OST == 0x00000002UL, "found 0x%.8xUL\n",
+ (unsigned)LEF_FROM_OST);
+
+ /* Checks for struct lfsck_reply */
+ LASSERTF((int)sizeof(struct lfsck_reply) == 16, "found %lld\n",
+ (long long)(int)sizeof(struct lfsck_reply));
+ LASSERTF((int)offsetof(struct lfsck_reply, lr_status) == 0, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_reply, lr_status));
+ LASSERTF((int)sizeof(((struct lfsck_reply *)0)->lr_status) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_reply *)0)->lr_status));
+ LASSERTF((int)offsetof(struct lfsck_reply, lr_padding_1) == 4, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_reply, lr_padding_1));
+ LASSERTF((int)sizeof(((struct lfsck_reply *)0)->lr_padding_1) == 4, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_reply *)0)->lr_padding_1));
+ LASSERTF((int)offsetof(struct lfsck_reply, lr_padding_2) == 8, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_reply, lr_padding_2));
+ LASSERTF((int)sizeof(((struct lfsck_reply *)0)->lr_padding_2) == 8, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_reply *)0)->lr_padding_2));