// SPDX-License-Identifier: GPL-2.0

/*
 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 * Use is subject to license terms.
 *
 * Copyright (c) 2011, 2017, Intel Corporation.
 */

/*
 * This file is part of Lustre, http://www.lustre.org/
 */

#define DEBUG_SUBSYSTEM S_RPC

#ifdef CONFIG_LUSTRE_FS_POSIX_ACL
# include <linux/fs.h>
# include <linux/posix_acl_xattr.h>
#endif /* CONFIG_LUSTRE_FS_POSIX_ACL */

#include <obd_support.h>
#include <obd_class.h>
#include <lustre_net.h>
#include <lustre_disk.h>
#include <uapi/linux/lustre/lustre_access_log.h>
#include <uapi/linux/lustre/lustre_lfsck_user.h>
#include <uapi/linux/lustre/lustre_cfg.h>
#include <uapi/linux/lustre/lgss.h>

#include "ptlrpc_internal.h"

void lustre_assert_wire_constants(void)
{
	/* Wire protocol assertions generated by 'wirecheck'
	 * (make -C lustre/utils newwiretest)
	 */

	/* Constants... */
	LASSERTF(PTL_RPC_MSG_REQUEST == 4711, "found %lld\n",
		 (long long)PTL_RPC_MSG_REQUEST);
	LASSERTF(PTL_RPC_MSG_ERR == 4712, "found %lld\n",
		 (long long)PTL_RPC_MSG_ERR);
	LASSERTF(PTL_RPC_MSG_REPLY == 4713, "found %lld\n",
		 (long long)PTL_RPC_MSG_REPLY);
	LASSERTF(MDS_DIR_END_OFF == 0xfffffffffffffffeULL, "found 0x%.16llxULL\n",
		 MDS_DIR_END_OFF);
	LASSERTF(DEAD_HANDLE_MAGIC == 0xdeadbeefcafebabeULL, "found 0x%.16llxULL\n",
		 DEAD_HANDLE_MAGIC);
	BUILD_BUG_ON(MTI_NAME_MAXLEN != 64);
	LASSERTF(OST_REPLY == 0, "found %lld\n",
		 (long long)OST_REPLY);
	LASSERTF(OST_GETATTR == 1, "found %lld\n",
		 (long long)OST_GETATTR);
	LASSERTF(OST_SETATTR == 2, "found %lld\n",
		 (long long)OST_SETATTR);
	LASSERTF(OST_READ == 3, "found %lld\n",
		 (long long)OST_READ);
	LASSERTF(OST_WRITE == 4, "found %lld\n",
		 (long long)OST_WRITE);
	LASSERTF(OST_CREATE == 5, "found %lld\n",
		 (long long)OST_CREATE);
	LASSERTF(OST_DESTROY == 6, "found %lld\n",
		 (long long)OST_DESTROY);
	LASSERTF(OST_GET_INFO == 7, "found %lld\n",
		 (long long)OST_GET_INFO);
	LASSERTF(OST_CONNECT == 8, "found %lld\n",
		 (long long)OST_CONNECT);
	LASSERTF(OST_DISCONNECT == 9, "found %lld\n",
		 (long long)OST_DISCONNECT);
	LASSERTF(OST_PUNCH == 10, "found %lld\n",
		 (long long)OST_PUNCH);
	LASSERTF(OST_OPEN == 11, "found %lld\n",
		 (long long)OST_OPEN);
	LASSERTF(OST_CLOSE == 12, "found %lld\n",
		 (long long)OST_CLOSE);
	LASSERTF(OST_STATFS == 13, "found %lld\n",
		 (long long)OST_STATFS);
	LASSERTF(OST_SYNC == 16, "found %lld\n",
		 (long long)OST_SYNC);
	LASSERTF(OST_SET_INFO == 17, "found %lld\n",
		 (long long)OST_SET_INFO);
	LASSERTF(OST_QUOTACHECK == 18, "found %lld\n",
		 (long long)OST_QUOTACHECK);
	LASSERTF(OST_QUOTACTL == 19, "found %lld\n",
		 (long long)OST_QUOTACTL);
	LASSERTF(OST_QUOTA_ADJUST_QUNIT == 20, "found %lld\n",
		 (long long)OST_QUOTA_ADJUST_QUNIT);
	LASSERTF(OST_LADVISE == 21, "found %lld\n",
		 (long long)OST_LADVISE);
	LASSERTF(OST_FALLOCATE == 22, "found %lld\n",
		 (long long)OST_FALLOCATE);
	LASSERTF(OST_SEEK == 23, "found %lld\n",
		 (long long)OST_SEEK);
	LASSERTF(OST_LAST_OPC == 24, "found %lld\n",
		 (long long)OST_LAST_OPC);
	LASSERTF(OBD_OBJECT_EOF == 0xffffffffffffffffULL, "found 0x%.16llxULL\n",
		 OBD_OBJECT_EOF);
	LASSERTF(OST_MIN_PRECREATE == 32, "found %lld\n",
		 (long long)OST_MIN_PRECREATE);
	LASSERTF(OST_MAX_PRECREATE == 20000, "found %lld\n",
		 (long long)OST_MAX_PRECREATE);
	LASSERTF(OST_LVB_ERR_INIT == 0xffbadbad80000000ULL, "found 0x%.16llxULL\n",
		 OST_LVB_ERR_INIT);
	LASSERTF(OST_LVB_ERR_MASK == 0xffbadbad00000000ULL, "found 0x%.16llxULL\n",
		 OST_LVB_ERR_MASK);
	LASSERTF(MDS_FIRST_OPC == 33, "found %lld\n",
		 (long long)MDS_FIRST_OPC);
	LASSERTF(MDS_GETATTR == 33, "found %lld\n",
		 (long long)MDS_GETATTR);
	LASSERTF(MDS_GETATTR_NAME == 34, "found %lld\n",
		 (long long)MDS_GETATTR_NAME);
	LASSERTF(MDS_CLOSE == 35, "found %lld\n",
		 (long long)MDS_CLOSE);
	LASSERTF(MDS_REINT == 36, "found %lld\n",
		 (long long)MDS_REINT);
	LASSERTF(MDS_READPAGE == 37, "found %lld\n",
		 (long long)MDS_READPAGE);
	LASSERTF(MDS_CONNECT == 38, "found %lld\n",
		 (long long)MDS_CONNECT);
	LASSERTF(MDS_DISCONNECT == 39, "found %lld\n",
		 (long long)MDS_DISCONNECT);
	LASSERTF(MDS_GET_ROOT == 40, "found %lld\n",
		 (long long)MDS_GET_ROOT);
	LASSERTF(MDS_STATFS == 41, "found %lld\n",
		 (long long)MDS_STATFS);
	LASSERTF(MDS_PIN == 42, "found %lld\n",
		 (long long)MDS_PIN);
	LASSERTF(MDS_UNPIN == 43, "found %lld\n",
		 (long long)MDS_UNPIN);
	LASSERTF(MDS_SYNC == 44, "found %lld\n",
		 (long long)MDS_SYNC);
	LASSERTF(MDS_DONE_WRITING == 45, "found %lld\n",
		 (long long)MDS_DONE_WRITING);
	LASSERTF(MDS_SET_INFO == 46, "found %lld\n",
		 (long long)MDS_SET_INFO);
	LASSERTF(MDS_QUOTACHECK == 47, "found %lld\n",
		 (long long)MDS_QUOTACHECK);
	LASSERTF(MDS_QUOTACTL == 48, "found %lld\n",
		 (long long)MDS_QUOTACTL);
	LASSERTF(MDS_GETXATTR == 49, "found %lld\n",
		 (long long)MDS_GETXATTR);
	LASSERTF(MDS_SETXATTR == 50, "found %lld\n",
		 (long long)MDS_SETXATTR);
	LASSERTF(MDS_WRITEPAGE == 51, "found %lld\n",
		 (long long)MDS_WRITEPAGE);
	LASSERTF(MDS_IS_SUBDIR == 52, "found %lld\n",
		 (long long)MDS_IS_SUBDIR);
	LASSERTF(MDS_GET_INFO == 53, "found %lld\n",
		 (long long)MDS_GET_INFO);
	LASSERTF(MDS_HSM_STATE_GET == 54, "found %lld\n",
		 (long long)MDS_HSM_STATE_GET);
	LASSERTF(MDS_HSM_STATE_SET == 55, "found %lld\n",
		 (long long)MDS_HSM_STATE_SET);
	LASSERTF(MDS_HSM_ACTION == 56, "found %lld\n",
		 (long long)MDS_HSM_ACTION);
	LASSERTF(MDS_HSM_PROGRESS == 57, "found %lld\n",
		 (long long)MDS_HSM_PROGRESS);
	LASSERTF(MDS_HSM_REQUEST == 58, "found %lld\n",
		 (long long)MDS_HSM_REQUEST);
	LASSERTF(MDS_HSM_CT_REGISTER == 59, "found %lld\n",
		 (long long)MDS_HSM_CT_REGISTER);
	LASSERTF(MDS_HSM_CT_UNREGISTER == 60, "found %lld\n",
		 (long long)MDS_HSM_CT_UNREGISTER);
	LASSERTF(MDS_SWAP_LAYOUTS == 61, "found %lld\n",
		 (long long)MDS_SWAP_LAYOUTS);
	LASSERTF(MDS_RMFID == 62, "found %lld\n",
		 (long long)MDS_RMFID);
	LASSERTF(MDS_BATCH == 63, "found %lld\n",
		 (long long)MDS_BATCH);
	LASSERTF(MDS_HSM_DATA_VERSION == 64, "found %lld\n",
		 (long long)MDS_HSM_DATA_VERSION);
	LASSERTF(MDS_LAST_OPC == 65, "found %lld\n",
		 (long long)MDS_LAST_OPC);
	LASSERTF(REINT_SETATTR == 1, "found %lld\n",
		 (long long)REINT_SETATTR);
	LASSERTF(REINT_CREATE == 2, "found %lld\n",
		 (long long)REINT_CREATE);
	LASSERTF(REINT_LINK == 3, "found %lld\n",
		 (long long)REINT_LINK);
	LASSERTF(REINT_UNLINK == 4, "found %lld\n",
		 (long long)REINT_UNLINK);
	LASSERTF(REINT_RENAME == 5, "found %lld\n",
		 (long long)REINT_RENAME);
	LASSERTF(REINT_OPEN == 6, "found %lld\n",
		 (long long)REINT_OPEN);
	LASSERTF(REINT_SETXATTR == 7, "found %lld\n",
		 (long long)REINT_SETXATTR);
	LASSERTF(REINT_RMENTRY == 8, "found %lld\n",
		 (long long)REINT_RMENTRY);
	LASSERTF(REINT_MIGRATE == 9, "found %lld\n",
		 (long long)REINT_MIGRATE);
	LASSERTF(REINT_MAX == 11, "found %lld\n",
		 (long long)REINT_MAX);
	LASSERTF(DISP_IT_EXECD == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)DISP_IT_EXECD);
	LASSERTF(DISP_LOOKUP_EXECD == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)DISP_LOOKUP_EXECD);
	LASSERTF(DISP_LOOKUP_NEG == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)DISP_LOOKUP_NEG);
	LASSERTF(DISP_LOOKUP_POS == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)DISP_LOOKUP_POS);
	LASSERTF(DISP_OPEN_CREATE == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)DISP_OPEN_CREATE);
	LASSERTF(DISP_OPEN_OPEN == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)DISP_OPEN_OPEN);
	LASSERTF(DISP_ENQ_COMPLETE == 0x00400000UL, "found 0x%.8xUL\n",
		(unsigned)DISP_ENQ_COMPLETE);
	LASSERTF(DISP_ENQ_OPEN_REF == 0x00800000UL, "found 0x%.8xUL\n",
		(unsigned)DISP_ENQ_OPEN_REF);
	LASSERTF(DISP_ENQ_CREATE_REF == 0x01000000UL, "found 0x%.8xUL\n",
		(unsigned)DISP_ENQ_CREATE_REF);
	LASSERTF(DISP_OPEN_LOCK == 0x02000000UL, "found 0x%.8xUL\n",
		(unsigned)DISP_OPEN_LOCK);
	LASSERTF(MDS_STATUS_CONN == 1, "found %lld\n",
		 (long long)MDS_STATUS_CONN);
	LASSERTF(MDS_STATUS_LOV == 2, "found %lld\n",
		 (long long)MDS_STATUS_LOV);
	LASSERTF(MDS_ATTR_MODE == 0x0000000000000001ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_MODE);
	LASSERTF(MDS_ATTR_UID == 0x0000000000000002ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_UID);
	LASSERTF(MDS_ATTR_GID == 0x0000000000000004ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_GID);
	LASSERTF(MDS_ATTR_SIZE == 0x0000000000000008ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_SIZE);
	LASSERTF(MDS_ATTR_ATIME == 0x0000000000000010ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_ATIME);
	LASSERTF(MDS_ATTR_MTIME == 0x0000000000000020ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_MTIME);
	LASSERTF(MDS_ATTR_CTIME == 0x0000000000000040ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_CTIME);
	LASSERTF(MDS_ATTR_ATIME_SET == 0x0000000000000080ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_ATIME_SET);
	LASSERTF(MDS_ATTR_MTIME_SET == 0x0000000000000100ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_MTIME_SET);
	LASSERTF(MDS_ATTR_FORCE == 0x0000000000000200ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_FORCE);
	LASSERTF(MDS_ATTR_ATTR_FLAG == 0x0000000000000400ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_ATTR_FLAG);
	LASSERTF(MDS_ATTR_KILL_SUID == 0x0000000000000800ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_KILL_SUID);
	LASSERTF(MDS_ATTR_KILL_SGID == 0x0000000000001000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_KILL_SGID);
	LASSERTF(MDS_ATTR_CTIME_SET == 0x0000000000002000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_CTIME_SET);
	LASSERTF(MDS_ATTR_FROM_OPEN == 0x0000000000004000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_FROM_OPEN);
	LASSERTF(MDS_ATTR_BLOCKS == 0x0000000000008000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_BLOCKS);
	LASSERTF(MDS_ATTR_PROJID == 0x0000000000010000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_PROJID);
	LASSERTF(MDS_ATTR_LSIZE == 0x0000000000020000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_LSIZE);
	LASSERTF(MDS_ATTR_LBLOCKS == 0x0000000000040000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_LBLOCKS);
	LASSERTF(MDS_ATTR_OVERRIDE == 0x0000000002000000ULL, "found 0x%.16llxULL\n",
			(long long)MDS_ATTR_OVERRIDE);
	LASSERTF(FLD_QUERY == 900, "found %lld\n",
		 (long long)FLD_QUERY);
	LASSERTF(FLD_READ == 901, "found %lld\n",
		 (long long)FLD_READ);
	LASSERTF(FLD_FIRST_OPC == 900, "found %lld\n",
		 (long long)FLD_FIRST_OPC);
	LASSERTF(FLD_LAST_OPC == 902, "found %lld\n",
		 (long long)FLD_LAST_OPC);
	LASSERTF(SEQ_QUERY == 700, "found %lld\n",
		 (long long)SEQ_QUERY);
	LASSERTF(SEQ_FIRST_OPC == 700, "found %lld\n",
		 (long long)SEQ_FIRST_OPC);
	LASSERTF(SEQ_LAST_OPC == 701, "found %lld\n",
		 (long long)SEQ_LAST_OPC);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(LFSCK_NOTIFY == 1101, "found %lld\n",
		 (long long)LFSCK_NOTIFY);
	LASSERTF(LFSCK_QUERY == 1102, "found %lld\n",
		 (long long)LFSCK_QUERY);
	LASSERTF(LFSCK_FIRST_OPC == 1101, "found %lld\n",
		 (long long)LFSCK_FIRST_OPC);
	LASSERTF(LFSCK_LAST_OPC == 1103, "found %lld\n",
		 (long long)LFSCK_LAST_OPC);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(SEQ_ALLOC_SUPER == 0, "found %lld\n",
		 (long long)SEQ_ALLOC_SUPER);
	LASSERTF(SEQ_ALLOC_META == 1, "found %lld\n",
		 (long long)SEQ_ALLOC_META);
	LASSERTF(LDLM_ENQUEUE == 101, "found %lld\n",
		 (long long)LDLM_ENQUEUE);
	LASSERTF(LDLM_CONVERT == 102, "found %lld\n",
		 (long long)LDLM_CONVERT);
	LASSERTF(LDLM_CANCEL == 103, "found %lld\n",
		 (long long)LDLM_CANCEL);
	LASSERTF(LDLM_BL_CALLBACK == 104, "found %lld\n",
		 (long long)LDLM_BL_CALLBACK);
	LASSERTF(LDLM_CP_CALLBACK == 105, "found %lld\n",
		 (long long)LDLM_CP_CALLBACK);
	LASSERTF(LDLM_GL_CALLBACK == 106, "found %lld\n",
		 (long long)LDLM_GL_CALLBACK);
	LASSERTF(LDLM_SET_INFO == 107, "found %lld\n",
		 (long long)LDLM_SET_INFO);
	LASSERTF(LDLM_LAST_OPC == 108, "found %lld\n",
		 (long long)LDLM_LAST_OPC);
	LASSERTF(LCK_MODE_MIN == 0, "found %lld\n",
		 (long long)LCK_MODE_MIN);
	LASSERTF(LCK_EX == 1, "found %lld\n",
		 (long long)LCK_EX);
	LASSERTF(LCK_PW == 2, "found %lld\n",
		 (long long)LCK_PW);
	LASSERTF(LCK_PR == 4, "found %lld\n",
		 (long long)LCK_PR);
	LASSERTF(LCK_CW == 8, "found %lld\n",
		 (long long)LCK_CW);
	LASSERTF(LCK_CR == 16, "found %lld\n",
		 (long long)LCK_CR);
	LASSERTF(LCK_NL == 32, "found %lld\n",
		 (long long)LCK_NL);
	LASSERTF(LCK_GROUP == 64, "found %lld\n",
		 (long long)LCK_GROUP);
	LASSERTF(LCK_COS == 128, "found %lld\n",
		 (long long)LCK_COS);
	LASSERTF(LCK_TXN == 256, "found %lld\n",
		 (long long)LCK_TXN);
	LASSERTF(LCK_MODE_END == 257, "found %lld\n",
		 (long long)LCK_MODE_END);
	LASSERTF(LCK_MODE_NUM == 9, "found %lld\n",
		 (long long)LCK_MODE_NUM);
	BUILD_BUG_ON(LDLM_PLAIN != 10);
	BUILD_BUG_ON(LDLM_EXTENT != 11);
	BUILD_BUG_ON(LDLM_FLOCK != 12);
	BUILD_BUG_ON(LDLM_IBITS != 13);
	BUILD_BUG_ON(LDLM_TYPE_END != 14);
	BUILD_BUG_ON(LUSTRE_RES_ID_SEQ_OFF != 0);
	BUILD_BUG_ON(LUSTRE_RES_ID_VER_OID_OFF != 1);
	BUILD_BUG_ON(LUSTRE_RES_ID_QUOTA_SEQ_OFF != 2);
	BUILD_BUG_ON(LUSTRE_RES_ID_QUOTA_VER_OID_OFF != 3);
	BUILD_BUG_ON(LUSTRE_RES_ID_HSH_OFF != 3);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(OUT_UPDATE == 1000, "found %lld\n",
		 (long long)OUT_UPDATE);
	LASSERTF(OUT_UPDATE_LAST_OPC == 1001, "found %lld\n",
		 (long long)OUT_UPDATE_LAST_OPC);
	BUILD_BUG_ON(LQUOTA_TYPE_USR != 0);
	BUILD_BUG_ON(LQUOTA_TYPE_GRP != 1);
	BUILD_BUG_ON(LQUOTA_RES_MD != 1);
	BUILD_BUG_ON(LQUOTA_RES_DT != 2);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(OBD_PING == 400, "found %lld\n",
		 (long long)OBD_PING);
	LASSERTF(OBD_IDX_READ == 403, "found %lld\n",
		 (long long)OBD_IDX_READ);
	LASSERTF(OBD_LAST_OPC == 404, "found %lld\n",
		 (long long)OBD_LAST_OPC);
	LASSERTF(QUOTA_DQACQ == 601, "found %lld\n",
		 (long long)QUOTA_DQACQ);
	LASSERTF(QUOTA_DQREL == 602, "found %lld\n",
		 (long long)QUOTA_DQREL);
	LASSERTF(QUOTA_LAST_OPC == 603, "found %lld\n",
		 (long long)QUOTA_LAST_OPC);
	LASSERTF(MGS_CONNECT == 250, "found %lld\n",
		 (long long)MGS_CONNECT);
	LASSERTF(MGS_DISCONNECT == 251, "found %lld\n",
		 (long long)MGS_DISCONNECT);
	LASSERTF(MGS_EXCEPTION == 252, "found %lld\n",
		 (long long)MGS_EXCEPTION);
	LASSERTF(MGS_TARGET_REG == 253, "found %lld\n",
		 (long long)MGS_TARGET_REG);
	LASSERTF(MGS_TARGET_DEL == 254, "found %lld\n",
		 (long long)MGS_TARGET_DEL);
	LASSERTF(MGS_SET_INFO == 255, "found %lld\n",
		 (long long)MGS_SET_INFO);
	LASSERTF(MGS_CONFIG_READ == 256, "found %lld\n",
		 (long long)MGS_CONFIG_READ);
	LASSERTF(MGS_LAST_OPC == 257, "found %lld\n",
		 (long long)MGS_LAST_OPC);
	LASSERTF(SEC_CTX_INIT == 801, "found %lld\n",
		 (long long)SEC_CTX_INIT);
	LASSERTF(SEC_CTX_INIT_CONT == 802, "found %lld\n",
		 (long long)SEC_CTX_INIT_CONT);
	LASSERTF(SEC_CTX_FINI == 803, "found %lld\n",
		 (long long)SEC_CTX_FINI);
	LASSERTF(SEC_LAST_OPC == 804, "found %lld\n",
		 (long long)SEC_LAST_OPC);
	/* Sizes and Offsets */

	/* Checks for struct obd_uuid */
	LASSERTF((int)sizeof(struct obd_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct obd_uuid));

	/* Checks for struct lu_seq_range */
	LASSERTF((int)sizeof(struct lu_seq_range) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct lu_seq_range));
	LASSERTF((int)offsetof(struct lu_seq_range, lsr_start) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_seq_range, lsr_start));
	LASSERTF((int)sizeof(((struct lu_seq_range *)0)->lsr_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_seq_range *)0)->lsr_start));
	LASSERTF((int)offsetof(struct lu_seq_range, lsr_end) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lu_seq_range, lsr_end));
	LASSERTF((int)sizeof(((struct lu_seq_range *)0)->lsr_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_seq_range *)0)->lsr_end));
	LASSERTF((int)offsetof(struct lu_seq_range, lsr_index) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_seq_range, lsr_index));
	LASSERTF((int)sizeof(((struct lu_seq_range *)0)->lsr_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_seq_range *)0)->lsr_index));
	LASSERTF((int)offsetof(struct lu_seq_range, lsr_flags) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lu_seq_range, lsr_flags));
	LASSERTF((int)sizeof(((struct lu_seq_range *)0)->lsr_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_seq_range *)0)->lsr_flags));
	LASSERTF(LU_SEQ_RANGE_MDT == 0, "found %lld\n",
		 (long long)LU_SEQ_RANGE_MDT);
	LASSERTF(LU_SEQ_RANGE_OST == 1, "found %lld\n",
		 (long long)LU_SEQ_RANGE_OST);

	/* Checks for struct lustre_som_attrs */
	LASSERTF((int)sizeof(struct lustre_som_attrs) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_som_attrs));
	LASSERTF((int)offsetof(struct lustre_som_attrs, lsa_valid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_som_attrs, lsa_valid));
	LASSERTF((int)sizeof(((struct lustre_som_attrs *)0)->lsa_valid) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_som_attrs *)0)->lsa_valid));
	LASSERTF((int)offsetof(struct lustre_som_attrs, lsa_reserved) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_som_attrs, lsa_reserved));
	LASSERTF((int)sizeof(((struct lustre_som_attrs *)0)->lsa_reserved) == 6, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_som_attrs *)0)->lsa_reserved));
	LASSERTF((int)offsetof(struct lustre_som_attrs, lsa_size) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_som_attrs, lsa_size));
	LASSERTF((int)sizeof(((struct lustre_som_attrs *)0)->lsa_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_som_attrs *)0)->lsa_size));
	LASSERTF((int)offsetof(struct lustre_som_attrs, lsa_blocks) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_som_attrs, lsa_blocks));
	LASSERTF((int)sizeof(((struct lustre_som_attrs *)0)->lsa_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_som_attrs *)0)->lsa_blocks));

#ifdef HAVE_SERVER_SUPPORT

	/* Checks for struct lustre_mdt_attrs */
	LASSERTF((int)sizeof(struct lustre_mdt_attrs) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_mdt_attrs));
	LASSERTF((int)offsetof(struct lustre_mdt_attrs, lma_compat) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_mdt_attrs, lma_compat));
	LASSERTF((int)sizeof(((struct lustre_mdt_attrs *)0)->lma_compat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_mdt_attrs *)0)->lma_compat));
	LASSERTF((int)offsetof(struct lustre_mdt_attrs, lma_incompat) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_mdt_attrs, lma_incompat));
	LASSERTF((int)sizeof(((struct lustre_mdt_attrs *)0)->lma_incompat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_mdt_attrs *)0)->lma_incompat));
	LASSERTF((int)offsetof(struct lustre_mdt_attrs, lma_self_fid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_mdt_attrs, lma_self_fid));
	LASSERTF((int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_mdt_attrs *)0)->lma_self_fid));
	LASSERTF(LMAC_HSM == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_HSM);
	LASSERTF(LMAC_NOT_IN_OI == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_NOT_IN_OI);
	LASSERTF(LMAC_FID_ON_OST == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_FID_ON_OST);
	LASSERTF(LMAC_STRIPE_INFO == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_STRIPE_INFO);
	LASSERTF(LMAC_COMP_INFO == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_COMP_INFO);
	LASSERTF(LMAC_IDX_BACKUP == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)LMAC_IDX_BACKUP);
	LASSERTF(LMAI_RELEASED == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_RELEASED);
	LASSERTF(LMAI_AGENT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_AGENT);
	LASSERTF(LMAI_REMOTE_PARENT == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_REMOTE_PARENT);
	LASSERTF(LMAI_STRIPED == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_STRIPED);
	LASSERTF(LMAI_ORPHAN == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_ORPHAN);
	LASSERTF(LMAI_ENCRYPT == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)LMAI_ENCRYPT);

	/* Checks for struct lustre_ost_attrs */
	LASSERTF((int)sizeof(struct lustre_ost_attrs) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_ost_attrs));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_lma) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_lma));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_lma) == 24, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_lma));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_parent_fid) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_parent_fid));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_parent_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_parent_fid));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_stripe_size) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_stripe_size));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_stripe_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_stripe_size));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_comp_id) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_comp_id));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_id));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_comp_start) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_comp_start));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_start));
	LASSERTF((int)offsetof(struct lustre_ost_attrs, loa_comp_end) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_ost_attrs, loa_comp_end));
	LASSERTF((int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_ost_attrs *)0)->loa_comp_end));
	LASSERTF(PFID_STRIPE_IDX_BITS == 16, "found %lld\n",
			(long long)PFID_STRIPE_IDX_BITS);
	LASSERTF(PFID_STRIPE_COUNT_MASK == ((1 << 16) - 1), "found 0x%.8x\n",
		PFID_STRIPE_COUNT_MASK);

	/* Checks for struct ost_layout */
	LASSERTF((int)sizeof(struct ost_layout) == 28, "found %lld\n",
		 (long long)(int)sizeof(struct ost_layout));
	LASSERTF((int)offsetof(struct ost_layout, ol_stripe_size) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ost_layout, ol_stripe_size));
	LASSERTF((int)sizeof(((struct ost_layout *)0)->ol_stripe_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_layout *)0)->ol_stripe_size));
	LASSERTF((int)offsetof(struct ost_layout, ol_stripe_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ost_layout, ol_stripe_count));
	LASSERTF((int)sizeof(((struct ost_layout *)0)->ol_stripe_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_layout *)0)->ol_stripe_count));
	LASSERTF((int)offsetof(struct ost_layout, ol_comp_start) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ost_layout, ol_comp_start));
	LASSERTF((int)sizeof(((struct ost_layout *)0)->ol_comp_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_layout *)0)->ol_comp_start));
	LASSERTF((int)offsetof(struct ost_layout, ol_comp_end) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ost_layout, ol_comp_end));
	LASSERTF((int)sizeof(((struct ost_layout *)0)->ol_comp_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_layout *)0)->ol_comp_end));
	LASSERTF((int)offsetof(struct ost_layout, ol_comp_id) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ost_layout, ol_comp_id));
	LASSERTF((int)sizeof(((struct ost_layout *)0)->ol_comp_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_layout *)0)->ol_comp_id));
	LASSERTF(OUT_CREATE == 1, "found %lld\n",
		 (long long)OUT_CREATE);
	LASSERTF(OUT_DESTROY == 2, "found %lld\n",
		 (long long)OUT_DESTROY);
	LASSERTF(OUT_REF_ADD == 3, "found %lld\n",
		 (long long)OUT_REF_ADD);
	LASSERTF(OUT_REF_DEL == 4, "found %lld\n",
		 (long long)OUT_REF_DEL);
	LASSERTF(OUT_ATTR_SET == 5, "found %lld\n",
		 (long long)OUT_ATTR_SET);
	LASSERTF(OUT_ATTR_GET == 6, "found %lld\n",
		 (long long)OUT_ATTR_GET);
	LASSERTF(OUT_XATTR_SET == 7, "found %lld\n",
		 (long long)OUT_XATTR_SET);
	LASSERTF(OUT_XATTR_GET == 8, "found %lld\n",
		 (long long)OUT_XATTR_GET);
	LASSERTF(OUT_INDEX_LOOKUP == 9, "found %lld\n",
		 (long long)OUT_INDEX_LOOKUP);
	LASSERTF(OUT_INDEX_LOOKUP == 9, "found %lld\n",
		 (long long)OUT_INDEX_LOOKUP);
	LASSERTF(OUT_INDEX_INSERT == 10, "found %lld\n",
		 (long long)OUT_INDEX_INSERT);
	LASSERTF(OUT_INDEX_DELETE == 11, "found %lld\n",
		 (long long)OUT_INDEX_DELETE);
	LASSERTF(OUT_WRITE == 12, "found %lld\n",
		 (long long)OUT_WRITE);
	LASSERTF(OUT_XATTR_DEL == 13, "found %lld\n",
		 (long long)OUT_XATTR_DEL);
	LASSERTF(OUT_PUNCH == 14, "found %lld\n",
		 (long long)OUT_PUNCH);
	LASSERTF(OUT_READ == 15, "found %lld\n",
		 (long long)OUT_READ);
	LASSERTF(OUT_NOOP == 16, "found %lld\n",
		 (long long)OUT_NOOP);
	LASSERTF(OUT_XATTR_LIST == 17, "found %lld\n",
		 (long long)OUT_XATTR_LIST);

	/* Checks for struct hsm_attrs */
	LASSERTF((int)sizeof(struct hsm_attrs) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct hsm_attrs));
	LASSERTF((int)offsetof(struct hsm_attrs, hsm_compat) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_attrs, hsm_compat));
	LASSERTF((int)sizeof(((struct hsm_attrs *)0)->hsm_compat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_attrs *)0)->hsm_compat));
	LASSERTF((int)offsetof(struct hsm_attrs, hsm_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_attrs, hsm_flags));
	LASSERTF((int)sizeof(((struct hsm_attrs *)0)->hsm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_attrs *)0)->hsm_flags));
	LASSERTF((int)offsetof(struct hsm_attrs, hsm_arch_id) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_attrs, hsm_arch_id));
	LASSERTF((int)sizeof(((struct hsm_attrs *)0)->hsm_arch_id) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_attrs *)0)->hsm_arch_id));
	LASSERTF((int)offsetof(struct hsm_attrs, hsm_arch_ver) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_attrs, hsm_arch_ver));
	LASSERTF((int)sizeof(((struct hsm_attrs *)0)->hsm_arch_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_attrs *)0)->hsm_arch_ver));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct ost_id */
	LASSERTF((int)sizeof(struct ost_id) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct ost_id));
	LASSERTF((int)offsetof(struct ost_id, oi) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ost_id, oi));
	LASSERTF((int)sizeof(((struct ost_id *)0)->oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_id *)0)->oi));
	LASSERTF(LUSTRE_FID_INIT_OID == 1, "found %lld\n",
		 (long long)LUSTRE_FID_INIT_OID);
	LASSERTF(FID_SEQ_OST_MDT0 == 0, "found %lld\n",
		 (long long)FID_SEQ_OST_MDT0);
	LASSERTF(FID_SEQ_LLOG == 1, "found %lld\n",
		 (long long)FID_SEQ_LLOG);
	LASSERTF(FID_SEQ_ECHO == 2, "found %lld\n",
		 (long long)FID_SEQ_ECHO);
	LASSERTF(FID_SEQ_UNUSED_START == 3, "found %lld\n",
		 (long long)FID_SEQ_UNUSED_START);
	LASSERTF(FID_SEQ_UNUSED_END == 9, "found %lld\n",
		 (long long)FID_SEQ_UNUSED_END);
	LASSERTF(FID_SEQ_LLOG_NAME == 10, "found %lld\n",
		 (long long)FID_SEQ_LLOG_NAME);
	LASSERTF(FID_SEQ_RSVD == 11, "found %lld\n",
		 (long long)FID_SEQ_RSVD);
	LASSERTF(FID_SEQ_IGIF == 12, "found %lld\n",
		 (long long)FID_SEQ_IGIF);
	LASSERTF(FID_SEQ_IGIF_MAX == 0x00000000ffffffffULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_IGIF_MAX);
	LASSERTF(FID_SEQ_IDIF == 0x0000000100000000ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_IDIF);
	LASSERTF(FID_SEQ_IDIF_MAX == 0x00000001ffffffffULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_IDIF_MAX);
	LASSERTF(FID_SEQ_START == 0x0000000200000000ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_START);
	LASSERTF(FID_SEQ_LOCAL_FILE == 0x0000000200000001ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_LOCAL_FILE);
	LASSERTF(FID_SEQ_DOT_LUSTRE == 0x0000000200000002ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_DOT_LUSTRE);
	LASSERTF(FID_SEQ_LOCAL_NAME == 0x0000000200000003ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_LOCAL_NAME);
	LASSERTF(FID_SEQ_SPECIAL == 0x0000000200000004ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_SPECIAL);
	LASSERTF(FID_SEQ_QUOTA == 0x0000000200000005ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_QUOTA);
	LASSERTF(FID_SEQ_QUOTA_GLB == 0x0000000200000006ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_QUOTA_GLB);
	LASSERTF(FID_SEQ_ROOT == 0x0000000200000007ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_ROOT);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(FID_SEQ_LAYOUT_RBTREE == 0x0000000200000008ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_LAYOUT_RBTREE);
	LASSERTF(FID_SEQ_UPDATE_LOG == 0x0000000200000009ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_UPDATE_LOG);
	LASSERTF(FID_SEQ_UPDATE_LOG_DIR == 0x000000020000000aULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_UPDATE_LOG_DIR);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(FID_SEQ_NORMAL == 0x0000000200000400ULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_NORMAL);
	LASSERTF(FID_SEQ_LOV_DEFAULT == 0xffffffffffffffffULL, "found 0x%.16llxULL\n",
			(long long)FID_SEQ_LOV_DEFAULT);
	LASSERTF(FID_OID_SPECIAL_BFL == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)FID_OID_SPECIAL_BFL);
	LASSERTF(FID_OID_DOT_LUSTRE == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)FID_OID_DOT_LUSTRE);
	LASSERTF(FID_OID_DOT_LUSTRE_OBF == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)FID_OID_DOT_LUSTRE_OBF);
	LASSERTF(FID_OID_DOT_LUSTRE_LPF == 0x00000003UL, "found 0x%.8xUL\n",
		(unsigned)FID_OID_DOT_LUSTRE_LPF);

	/* Checks for struct lu_dirent */
	LASSERTF((int)sizeof(struct lu_dirent) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lu_dirent));
	LASSERTF((int)offsetof(struct lu_dirent, lde_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_fid));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_fid));
	LASSERTF((int)offsetof(struct lu_dirent, lde_hash) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_hash));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_hash) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_hash));
	LASSERTF((int)offsetof(struct lu_dirent, lde_reclen) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_reclen));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_reclen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_reclen));
	LASSERTF((int)offsetof(struct lu_dirent, lde_namelen) == 26, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_namelen));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_namelen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_namelen));
	LASSERTF((int)offsetof(struct lu_dirent, lde_attrs) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_attrs));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_attrs) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_attrs));
	LASSERTF((int)offsetof(struct lu_dirent, lde_name[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirent, lde_name[0]));
	LASSERTF((int)sizeof(((struct lu_dirent *)0)->lde_name[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirent *)0)->lde_name[0]));
	LASSERTF(LUDA_FID == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LUDA_FID);
	LASSERTF(LUDA_TYPE == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)LUDA_TYPE);
	LASSERTF(LUDA_64BITHASH == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LUDA_64BITHASH);

	/* Checks for struct luda_type */
	LASSERTF((int)sizeof(struct luda_type) == 2, "found %lld\n",
		 (long long)(int)sizeof(struct luda_type));
	LASSERTF((int)offsetof(struct luda_type, lt_type) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct luda_type, lt_type));
	LASSERTF((int)sizeof(((struct luda_type *)0)->lt_type) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct luda_type *)0)->lt_type));

	/* Checks for struct lu_dirpage */
	LASSERTF((int)sizeof(struct lu_dirpage) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct lu_dirpage));
	LASSERTF((int)offsetof(struct lu_dirpage, ldp_hash_start) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirpage, ldp_hash_start));
	LASSERTF((int)sizeof(((struct lu_dirpage *)0)->ldp_hash_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirpage *)0)->ldp_hash_start));
	LASSERTF((int)offsetof(struct lu_dirpage, ldp_hash_end) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirpage, ldp_hash_end));
	LASSERTF((int)sizeof(((struct lu_dirpage *)0)->ldp_hash_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirpage *)0)->ldp_hash_end));
	LASSERTF((int)offsetof(struct lu_dirpage, ldp_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirpage, ldp_flags));
	LASSERTF((int)sizeof(((struct lu_dirpage *)0)->ldp_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirpage *)0)->ldp_flags));
	LASSERTF((int)offsetof(struct lu_dirpage, ldp_pad0) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirpage, ldp_pad0));
	LASSERTF((int)sizeof(((struct lu_dirpage *)0)->ldp_pad0) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirpage *)0)->ldp_pad0));
	LASSERTF((int)offsetof(struct lu_dirpage, ldp_entries[0]) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lu_dirpage, ldp_entries[0]));
	LASSERTF((int)sizeof(((struct lu_dirpage *)0)->ldp_entries[0]) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_dirpage *)0)->ldp_entries[0]));
	LASSERTF(LDF_EMPTY == 1, "found %lld\n",
		 (long long)LDF_EMPTY);
	LASSERTF(LDF_COLLIDE == 2, "found %lld\n",
		 (long long)LDF_COLLIDE);
	LASSERTF(LU_PAGE_SIZE == 4096, "found %lld\n",
		 (long long)LU_PAGE_SIZE);
#ifdef HAVE_SERVER_SUPPORT
	/* Checks for union lu_page */
	LASSERTF((int)sizeof(union lu_page) == 4096, "found %lld\n",
		 (long long)(int)sizeof(union lu_page));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct lu_ladvise */
	LASSERTF((int)sizeof(struct lu_ladvise) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lu_ladvise));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_advice) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_advice));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_advice) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_advice));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_value1) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_value1));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_value1) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_value1));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_value2) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_value2));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_value2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_value2));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_start) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_start));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_start));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_end) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_end));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_end));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_value3) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_value3));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_value3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_value3));
	LASSERTF((int)offsetof(struct lu_ladvise, lla_value4) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lu_ladvise, lla_value4));
	LASSERTF((int)sizeof(((struct lu_ladvise *)0)->lla_value4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_ladvise *)0)->lla_value4));
	LASSERTF(LU_LADVISE_WILLREAD == 1, "found %lld\n",
		 (long long)LU_LADVISE_WILLREAD);
	LASSERTF(LU_LADVISE_DONTNEED == 2, "found %lld\n",
		 (long long)LU_LADVISE_DONTNEED);
	LASSERTF(LU_LADVISE_LOCKNOEXPAND == 3, "found %lld\n",
		 (long long)LU_LADVISE_LOCKNOEXPAND);
	LASSERTF(LU_LADVISE_LOCKAHEAD == 4, "found %lld\n",
		 (long long)LU_LADVISE_LOCKAHEAD);

	/* Checks for struct ladvise_hdr */
	LASSERTF((int)sizeof(struct ladvise_hdr) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct ladvise_hdr));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_magic));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_magic));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_count));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_count));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_flags) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_flags));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_flags));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_value1) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_value1));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_value1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_value1));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_value2) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_value2));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_value2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_value2));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_value3) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_value3));
	LASSERTF((int)sizeof(((struct ladvise_hdr *)0)->lah_value3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ladvise_hdr *)0)->lah_value3));
	LASSERTF((int)offsetof(struct ladvise_hdr, lah_advise) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ladvise_hdr, lah_advise));
	LASSERTF((int)sizeof(*((struct ladvise_hdr *)0)->lah_advise) == 32, "found %lld\n",
		 (long long)(int)sizeof(*((struct ladvise_hdr *)0)->lah_advise));
	BUILD_BUG_ON(LF_ASYNC != 0x00000001);
	BUILD_BUG_ON(LF_UNSET != 0x00000002);
	BUILD_BUG_ON(LADVISE_MAGIC != 0x1adf1ce0);

	/* Checks for struct lustre_handle */
	LASSERTF((int)sizeof(struct lustre_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_handle));
	LASSERTF((int)offsetof(struct lustre_handle, cookie) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_handle, cookie));
	LASSERTF((int)sizeof(((struct lustre_handle *)0)->cookie) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_handle *)0)->cookie));

	/* Checks for struct lustre_msg_v2 */
	LASSERTF((int)sizeof(struct lustre_msg_v2) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_msg_v2));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_bufcount) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_bufcount));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_bufcount) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_bufcount));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_secflvr) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_secflvr));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_secflvr) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_secflvr));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_magic) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_magic));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_magic));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_repsize) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_repsize));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_repsize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_repsize));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_cksum) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_cksum));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_cksum) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_cksum));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_flags) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_flags));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_flags));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_opc) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_opc));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_opc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_opc));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_padding_3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_padding_3));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_padding_3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_padding_3));
	LASSERTF((int)offsetof(struct lustre_msg_v2, lm_buflens[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_msg_v2, lm_buflens[0]));
	LASSERTF((int)sizeof(((struct lustre_msg_v2 *)0)->lm_buflens[0]) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_msg_v2 *)0)->lm_buflens[0]));
	LASSERTF(LUSTRE_MSG_MAGIC_V2 == 0x0bd00bd3UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_MSG_MAGIC_V2);
	LASSERTF(LUSTRE_MSG_MAGIC_V2_SWABBED == 0xd30bd00bUL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_MSG_MAGIC_V2_SWABBED);

	/* Checks for struct ptlrpc_body */
	LASSERTF((int)sizeof(struct ptlrpc_body_v3) == 184, "found %lld\n",
		 (long long)(int)sizeof(struct ptlrpc_body_v3));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_handle) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_handle));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_handle));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_type) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_type));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_type));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_version) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_version));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_version));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_opc) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_opc));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_opc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_opc));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_status) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_status));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_status) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_status));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_last_xid) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_last_xid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_xid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_xid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_tag) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_tag));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_tag) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_tag));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding0) == 34, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_padding0));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding0) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding0));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_projid) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_projid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_projid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_last_committed) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_last_committed));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_committed) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_committed));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_transno) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_transno));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_transno));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_flags) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_flags));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_flags));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_op_flags) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_op_flags));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_op_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_op_flags));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_conn_cnt) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_conn_cnt));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_conn_cnt) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_conn_cnt));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_timeout) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_timeout));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_timeout) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_timeout));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_service_time) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_service_time));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_service_time) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_service_time));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_limit) == 76, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_limit));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_limit) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_limit));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_slv) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_slv));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_slv) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_slv));
	BUILD_BUG_ON(PTLRPC_NUM_VERSIONS != 4);
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_pre_versions) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_pre_versions));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_pre_versions) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_pre_versions));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_mbits) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_mbits));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_mbits) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_mbits));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding64_0) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_padding64_0));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_0) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_0));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding64_1) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_padding64_1));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_1));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_uid) == 144, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_uid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_uid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_gid) == 148, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_gid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_gid));
	BUILD_BUG_ON(LUSTRE_JOBID_SIZE != 32);
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_jobid) == 152, "found %lld\n",
		 (long long)(int)offsetof(struct ptlrpc_body_v3, pb_jobid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_jobid) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_jobid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_handle) == (int)offsetof(struct ptlrpc_body_v2, pb_handle), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_handle), (int)offsetof(struct ptlrpc_body_v2, pb_handle));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_handle) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_handle), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_handle), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_handle));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_type) == (int)offsetof(struct ptlrpc_body_v2, pb_type), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_type), (int)offsetof(struct ptlrpc_body_v2, pb_type));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_type) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_type), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_type), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_type));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_version) == (int)offsetof(struct ptlrpc_body_v2, pb_version), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_version), (int)offsetof(struct ptlrpc_body_v2, pb_version));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_version) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_version), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_version), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_version));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_opc) == (int)offsetof(struct ptlrpc_body_v2, pb_opc), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_opc), (int)offsetof(struct ptlrpc_body_v2, pb_opc));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_opc) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_opc), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_opc), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_opc));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_status) == (int)offsetof(struct ptlrpc_body_v2, pb_status), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_status), (int)offsetof(struct ptlrpc_body_v2, pb_status));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_status) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_status), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_status), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_status));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_last_xid) == (int)offsetof(struct ptlrpc_body_v2, pb_last_xid), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_last_xid), (int)offsetof(struct ptlrpc_body_v2, pb_last_xid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_xid) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_last_xid), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_xid), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_last_xid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_tag) == (int)offsetof(struct ptlrpc_body_v2, pb_tag), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_tag), (int)offsetof(struct ptlrpc_body_v2, pb_tag));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_tag) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_tag), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_tag), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_tag));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding0) == (int)offsetof(struct ptlrpc_body_v2, pb_padding0), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_padding0), (int)offsetof(struct ptlrpc_body_v2, pb_padding0));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding0) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding0), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding0), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding0));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_projid) == (int)offsetof(struct ptlrpc_body_v2, pb_projid), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_projid), (int)offsetof(struct ptlrpc_body_v2, pb_projid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_projid) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_projid), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_projid), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_projid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_last_committed) == (int)offsetof(struct ptlrpc_body_v2, pb_last_committed), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_last_committed), (int)offsetof(struct ptlrpc_body_v2, pb_last_committed));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_committed) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_last_committed), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_last_committed), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_last_committed));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_transno) == (int)offsetof(struct ptlrpc_body_v2, pb_transno), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_transno), (int)offsetof(struct ptlrpc_body_v2, pb_transno));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_transno) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_transno), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_transno), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_transno));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_flags) == (int)offsetof(struct ptlrpc_body_v2, pb_flags), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_flags), (int)offsetof(struct ptlrpc_body_v2, pb_flags));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_flags) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_flags), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_flags), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_flags));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_op_flags) == (int)offsetof(struct ptlrpc_body_v2, pb_op_flags), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_op_flags), (int)offsetof(struct ptlrpc_body_v2, pb_op_flags));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_op_flags) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_op_flags), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_op_flags), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_op_flags));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_conn_cnt) == (int)offsetof(struct ptlrpc_body_v2, pb_conn_cnt), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_conn_cnt), (int)offsetof(struct ptlrpc_body_v2, pb_conn_cnt));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_conn_cnt) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_conn_cnt), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_conn_cnt), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_conn_cnt));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_timeout) == (int)offsetof(struct ptlrpc_body_v2, pb_timeout), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_timeout), (int)offsetof(struct ptlrpc_body_v2, pb_timeout));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_timeout) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_timeout), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_timeout), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_timeout));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_service_time) == (int)offsetof(struct ptlrpc_body_v2, pb_service_time), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_service_time), (int)offsetof(struct ptlrpc_body_v2, pb_service_time));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_service_time) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_service_time), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_service_time), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_service_time));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_limit) == (int)offsetof(struct ptlrpc_body_v2, pb_limit), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_limit), (int)offsetof(struct ptlrpc_body_v2, pb_limit));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_limit) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_limit), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_limit), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_limit));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_slv) == (int)offsetof(struct ptlrpc_body_v2, pb_slv), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_slv), (int)offsetof(struct ptlrpc_body_v2, pb_slv));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_slv) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_slv), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_slv), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_slv));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_pre_versions) == (int)offsetof(struct ptlrpc_body_v2, pb_pre_versions), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_pre_versions), (int)offsetof(struct ptlrpc_body_v2, pb_pre_versions));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_pre_versions) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_pre_versions), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_pre_versions), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_pre_versions));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_mbits) == (int)offsetof(struct ptlrpc_body_v2, pb_mbits), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_mbits), (int)offsetof(struct ptlrpc_body_v2, pb_mbits));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_mbits) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_mbits), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_mbits), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_mbits));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding64_0) == (int)offsetof(struct ptlrpc_body_v2, pb_padding64_0), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_padding64_0), (int)offsetof(struct ptlrpc_body_v2, pb_padding64_0));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_0) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding64_0), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_0), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding64_0));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_padding64_1) == (int)offsetof(struct ptlrpc_body_v2, pb_padding64_1), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_padding64_1), (int)offsetof(struct ptlrpc_body_v2, pb_padding64_1));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_1) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding64_1), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_padding64_1), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_padding64_1));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_uid) == (int)offsetof(struct ptlrpc_body_v2, pb_uid), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_uid), (int)offsetof(struct ptlrpc_body_v2, pb_uid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_uid) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_uid), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_uid), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_uid));
	LASSERTF((int)offsetof(struct ptlrpc_body_v3, pb_gid) == (int)offsetof(struct ptlrpc_body_v2, pb_gid), "%d != %d\n",
		 (int)offsetof(struct ptlrpc_body_v3, pb_gid), (int)offsetof(struct ptlrpc_body_v2, pb_gid));
	LASSERTF((int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_gid) == (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_gid), "%d != %d\n",
		 (int)sizeof(((struct ptlrpc_body_v3 *)0)->pb_gid), (int)sizeof(((struct ptlrpc_body_v2 *)0)->pb_gid));
	LASSERTF(MSG_PTLRPC_BODY_OFF == 0, "found %lld\n",
		 (long long)MSG_PTLRPC_BODY_OFF);
	LASSERTF(REQ_REC_OFF == 1, "found %lld\n",
		 (long long)REQ_REC_OFF);
	LASSERTF(REPLY_REC_OFF == 1, "found %lld\n",
		 (long long)REPLY_REC_OFF);
	LASSERTF(DLM_LOCKREQ_OFF == 1, "found %lld\n",
		 (long long)DLM_LOCKREQ_OFF);
	LASSERTF(DLM_REQ_REC_OFF == 2, "found %lld\n",
		 (long long)DLM_REQ_REC_OFF);
	LASSERTF(DLM_INTENT_IT_OFF == 2, "found %lld\n",
		 (long long)DLM_INTENT_IT_OFF);
	LASSERTF(DLM_INTENT_REC_OFF == 3, "found %lld\n",
		 (long long)DLM_INTENT_REC_OFF);
	LASSERTF(DLM_LOCKREPLY_OFF == 1, "found %lld\n",
		 (long long)DLM_LOCKREPLY_OFF);
	LASSERTF(DLM_REPLY_REC_OFF == 2, "found %lld\n",
		 (long long)DLM_REPLY_REC_OFF);
	LASSERTF(MSG_PTLRPC_HEADER_OFF == 31, "found %lld\n",
		 (long long)MSG_PTLRPC_HEADER_OFF);
	LASSERTF(PTLRPC_MSG_VERSION == 0x00000003UL, "found 0x%.8xUL\n",
		(unsigned)PTLRPC_MSG_VERSION);
	LASSERTF(LUSTRE_VERSION_MASK == 0xffff0000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_VERSION_MASK);
	LASSERTF(LUSTRE_OBD_VERSION == 0x00010000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_OBD_VERSION);
	LASSERTF(LUSTRE_MDS_VERSION == 0x00020000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_MDS_VERSION);
	LASSERTF(LUSTRE_OST_VERSION == 0x00030000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_OST_VERSION);
	LASSERTF(LUSTRE_DLM_VERSION == 0x00040000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_DLM_VERSION);
	LASSERTF(LUSTRE_LOG_VERSION == 0x00050000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_LOG_VERSION);
	LASSERTF(LUSTRE_MGS_VERSION == 0x00060000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_MGS_VERSION);
	LASSERTF(MSGHDR_AT_SUPPORT == 1, "found %lld\n",
		 (long long)MSGHDR_AT_SUPPORT);
	LASSERTF(MSGHDR_CKSUM_INCOMPAT18 == 2, "found %lld\n",
		 (long long)MSGHDR_CKSUM_INCOMPAT18);
	LASSERTF(MSG_RESENT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)MSG_RESENT);
	LASSERTF(MSG_REPLAY == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)MSG_REPLAY);
	LASSERTF(MSG_REQ_REPLAY_DONE == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)MSG_REQ_REPLAY_DONE);
	LASSERTF(MSG_LOCK_REPLAY_DONE == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)MSG_LOCK_REPLAY_DONE);
	LASSERTF(MSG_CONNECT_RECOVERING == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_RECOVERING);
	LASSERTF(MSG_CONNECT_RECONNECT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_RECONNECT);
	LASSERTF(MSG_CONNECT_REPLAYABLE == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_REPLAYABLE);
	LASSERTF(MSG_CONNECT_LIBCLIENT == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_LIBCLIENT);
	LASSERTF(MSG_CONNECT_INITIAL == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_INITIAL);
	LASSERTF(MSG_CONNECT_NEXT_VER == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_NEXT_VER);
	LASSERTF(MSG_CONNECT_TRANSNO == 0x00000100UL, "found 0x%.8xUL\n",
		(unsigned)MSG_CONNECT_TRANSNO);

	/* Checks for struct obd_connect_data */
	LASSERTF((int)sizeof(struct obd_connect_data) == 192, "found %lld\n",
		 (long long)(int)sizeof(struct obd_connect_data));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_connect_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_connect_flags));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_connect_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_connect_flags));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_version) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_version));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_version));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_grant) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_grant));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_grant) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_grant));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_index) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_index));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_index));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_brw_size) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_brw_size));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_brw_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_brw_size));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_ibits_known) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_ibits_known));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_ibits_known) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_ibits_known));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_grant_blkbits) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_grant_blkbits));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_grant_blkbits) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_grant_blkbits));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_grant_inobits) == 33, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_grant_inobits));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_grant_inobits) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_grant_inobits));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_grant_tax_kb) == 34, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_grant_tax_kb));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_grant_tax_kb) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_grant_tax_kb));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_grant_max_blks) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_grant_max_blks));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_grant_max_blks) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_grant_max_blks));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_transno) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_transno));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_transno));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_group) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_group));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_group) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_group));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_cksum_types) == 52, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_cksum_types));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_cksum_types) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_cksum_types));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_max_easize) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_max_easize));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_max_easize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_max_easize));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_instance) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_instance));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_instance) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_instance));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_maxbytes) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_maxbytes));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_maxbytes) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_maxbytes));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_maxmodrpcs) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_maxmodrpcs));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_maxmodrpcs) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_maxmodrpcs));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_conn_policy) == 74, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_conn_policy));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_conn_policy) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_conn_policy));
	LASSERTF((int)offsetof(struct obd_connect_data, padding0) == 75, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding0));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding0) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding0));
	LASSERTF((int)offsetof(struct obd_connect_data, padding1) == 76, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding1));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding1));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_connect_flags2) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_connect_flags2));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_connect_flags2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_connect_flags2));
	LASSERTF((int)offsetof(struct obd_connect_data, ocd_compr_type) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, ocd_compr_type));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->ocd_compr_type) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->ocd_compr_type));
	LASSERTF((int)offsetof(struct obd_connect_data, padding4) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding4));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding4));
	LASSERTF((int)offsetof(struct obd_connect_data, padding5) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding5));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding5));
	LASSERTF((int)offsetof(struct obd_connect_data, padding6) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding6));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding6) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding6));
	LASSERTF((int)offsetof(struct obd_connect_data, padding7) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding7));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding7) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding7));
	LASSERTF((int)offsetof(struct obd_connect_data, padding8) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding8));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding8) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding8));
	LASSERTF((int)offsetof(struct obd_connect_data, padding9) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, padding9));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->padding9) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->padding9));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingA) == 144, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingA));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingA) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingA));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingB) == 152, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingB));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingB) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingB));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingC) == 160, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingC));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingC) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingC));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingD) == 168, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingD));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingD) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingD));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingE) == 176, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingE));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingE) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingE));
	LASSERTF((int)offsetof(struct obd_connect_data, paddingF) == 184, "found %lld\n",
		 (long long)(int)offsetof(struct obd_connect_data, paddingF));
	LASSERTF((int)sizeof(((struct obd_connect_data *)0)->paddingF) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_connect_data *)0)->paddingF));

	LASSERTF(OBD_CONNECT_RDONLY == 0x1ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_RDONLY);
	LASSERTF(OBD_CONNECT_INDEX == 0x2ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_INDEX);
	LASSERTF(OBD_CONNECT_MDS == 0x4ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MDS);
	LASSERTF(OBD_CONNECT_GRANT == 0x8ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_GRANT);
	LASSERTF(OBD_CONNECT_SRVLOCK == 0x10ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_SRVLOCK);
	LASSERTF(OBD_CONNECT_VERSION == 0x20ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_VERSION);
	LASSERTF(OBD_CONNECT_MGS_NIDLIST == 0x40ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MGS_NIDLIST);
	LASSERTF(OBD_CONNECT_ACL == 0x80ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_ACL);
	LASSERTF(OBD_CONNECT_XATTR == 0x100ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_XATTR);
	LASSERTF(OBD_CONNECT_LARGE_ACL == 0x200ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LARGE_ACL);
	LASSERTF(OBD_CONNECT_TRANSNO == 0x800ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_TRANSNO);
	LASSERTF(OBD_CONNECT_IBITS == 0x1000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_IBITS);
	LASSERTF(OBD_CONNECT_BARRIER == 0x2000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_BARRIER);
	LASSERTF(OBD_CONNECT_ATTRFID == 0x4000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_ATTRFID);
	LASSERTF(OBD_CONNECT_NODEVOH == 0x8000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_NODEVOH);
	LASSERTF(OBD_CONNECT_RMT_CLIENT == 0x10000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_RMT_CLIENT);
	LASSERTF(OBD_CONNECT_RMT_CLIENT_FORCE == 0x20000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_RMT_CLIENT_FORCE);
	LASSERTF(OBD_CONNECT_BRW_SIZE == 0x40000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_BRW_SIZE);
	LASSERTF(OBD_CONNECT_QUOTA64 == 0x80000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_QUOTA64);
	LASSERTF(OBD_CONNECT_MDS_CAPA == 0x100000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MDS_CAPA);
	LASSERTF(OBD_CONNECT_OSS_CAPA == 0x200000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_OSS_CAPA);
	LASSERTF(OBD_CONNECT_CANCELSET == 0x400000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_CANCELSET);
	LASSERTF(OBD_CONNECT_SOM == 0x800000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_SOM);
	LASSERTF(OBD_CONNECT_AT == 0x1000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_AT);
	LASSERTF(OBD_CONNECT_LRU_RESIZE == 0x2000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LRU_RESIZE);
	LASSERTF(OBD_CONNECT_MDS_MDS == 0x4000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MDS_MDS);
	LASSERTF(OBD_CONNECT_REAL == 0x8000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_REAL);
	LASSERTF(OBD_CONNECT_CHANGE_QS == 0x10000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_CHANGE_QS);
	LASSERTF(OBD_CONNECT_CKSUM == 0x20000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_CKSUM);
	LASSERTF(OBD_CONNECT_FID == 0x40000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_FID);
	LASSERTF(OBD_CONNECT_VBR == 0x80000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_VBR);
	LASSERTF(OBD_CONNECT_LOV_V3 == 0x100000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LOV_V3);
	LASSERTF(OBD_CONNECT_GRANT_SHRINK == 0x200000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_GRANT_SHRINK);
	LASSERTF(OBD_CONNECT_SKIP_ORPHAN == 0x400000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_SKIP_ORPHAN);
	LASSERTF(OBD_CONNECT_MAX_EASIZE == 0x800000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MAX_EASIZE);
	LASSERTF(OBD_CONNECT_FULL20 == 0x1000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_FULL20);
	LASSERTF(OBD_CONNECT_LAYOUTLOCK == 0x2000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LAYOUTLOCK);
	LASSERTF(OBD_CONNECT_64BITHASH == 0x4000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_64BITHASH);
	LASSERTF(OBD_CONNECT_MAXBYTES == 0x8000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MAXBYTES);
	LASSERTF(OBD_CONNECT_IMP_RECOV == 0x10000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_IMP_RECOV);
	LASSERTF(OBD_CONNECT_JOBSTATS == 0x20000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_JOBSTATS);
	LASSERTF(OBD_CONNECT_UMASK == 0x40000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_UMASK);
	LASSERTF(OBD_CONNECT_EINPROGRESS == 0x80000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_EINPROGRESS);
	LASSERTF(OBD_CONNECT_GRANT_PARAM == 0x100000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_GRANT_PARAM);
	LASSERTF(OBD_CONNECT_FLOCK_OWNER == 0x200000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_FLOCK_OWNER);
	LASSERTF(OBD_CONNECT_LVB_TYPE == 0x400000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LVB_TYPE);
	LASSERTF(OBD_CONNECT_NANOSEC_TIME == 0x800000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_NANOSEC_TIME);
	LASSERTF(OBD_CONNECT_LIGHTWEIGHT == 0x1000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LIGHTWEIGHT);
	LASSERTF(OBD_CONNECT_SHORTIO == 0x2000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_SHORTIO);
	LASSERTF(OBD_CONNECT_PINGLESS == 0x4000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_PINGLESS);
	LASSERTF(OBD_CONNECT_FLOCK_DEAD == 0x8000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_FLOCK_DEAD);
	LASSERTF(OBD_CONNECT_DISP_STRIPE == 0x10000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_DISP_STRIPE);
	LASSERTF(OBD_CONNECT_OPEN_BY_FID == 0x20000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_OPEN_BY_FID);
	LASSERTF(OBD_CONNECT_LFSCK == 0x40000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_LFSCK);
	LASSERTF(OBD_CONNECT_UNLINK_CLOSE == 0x100000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_UNLINK_CLOSE);
	LASSERTF(OBD_CONNECT_MULTIMODRPCS == 0x200000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_MULTIMODRPCS);
	LASSERTF(OBD_CONNECT_DIR_STRIPE == 0x400000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_DIR_STRIPE);
	LASSERTF(OBD_CONNECT_SUBTREE == 0x800000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_SUBTREE);
	LASSERTF(OBD_CONNECT_BULK_MBITS == 0x2000000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_BULK_MBITS);
	LASSERTF(OBD_CONNECT_OBDOPACK == 0x4000000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_OBDOPACK);
	LASSERTF(OBD_CONNECT_FLAGS2 == 0x8000000000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT_FLAGS2);

	LASSERTF(OBD_CONNECT2_FILE_SECCTX == 0x1ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_FILE_SECCTX);
	LASSERTF(OBD_CONNECT2_LOCKAHEAD == 0x2ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_LOCKAHEAD);
	LASSERTF(OBD_CONNECT2_DIR_MIGRATE == 0x4ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_DIR_MIGRATE);
	LASSERTF(OBD_CONNECT2_SUM_STATFS == 0x8ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_SUM_STATFS);
	LASSERTF(OBD_CONNECT2_OVERSTRIPING == 0x10ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_OVERSTRIPING);
	LASSERTF(OBD_CONNECT2_FLR == 0x20ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_FLR);
	LASSERTF(OBD_CONNECT2_WBC_INTENTS == 0x40ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_WBC_INTENTS);
	LASSERTF(OBD_CONNECT2_LOCK_CONVERT == 0x80ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_LOCK_CONVERT);
	LASSERTF(OBD_CONNECT2_ARCHIVE_ID_ARRAY == 0x100ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ARCHIVE_ID_ARRAY);
	LASSERTF(OBD_CONNECT2_INC_XID == 0x200ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_INC_XID);
	LASSERTF(OBD_CONNECT2_SELINUX_POLICY == 0x400ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_SELINUX_POLICY);
	LASSERTF(OBD_CONNECT2_LSOM == 0x800ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_LSOM);
	LASSERTF(OBD_CONNECT2_PCC == 0x1000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_PCC);
	LASSERTF(OBD_CONNECT2_CRUSH == 0x2000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_CRUSH);
	LASSERTF(OBD_CONNECT2_ASYNC_DISCARD == 0x4000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ASYNC_DISCARD);
	LASSERTF(OBD_CONNECT2_ENCRYPT == 0x8000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ENCRYPT);
	LASSERTF(OBD_CONNECT2_FIDMAP == 0x10000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_FIDMAP);
	LASSERTF(OBD_CONNECT2_GETATTR_PFID == 0x20000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_GETATTR_PFID);
	LASSERTF(OBD_CONNECT2_LSEEK == 0x40000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_LSEEK);
	LASSERTF(OBD_CONNECT2_DOM_LVB == 0x80000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_DOM_LVB);
	LASSERTF(OBD_CONNECT2_REP_MBITS == 0x100000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_REP_MBITS);
	LASSERTF(OBD_CONNECT2_MODE_CONVERT == 0x200000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_MODE_CONVERT);
	LASSERTF(OBD_CONNECT2_BATCH_RPC == 0x400000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_BATCH_RPC);
	LASSERTF(OBD_CONNECT2_PCCRO == 0x800000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_PCCRO);
	LASSERTF(OBD_CONNECT2_ATOMIC_OPEN_LOCK == 0x4000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ATOMIC_OPEN_LOCK);
	LASSERTF(OBD_CONNECT2_ENCRYPT_NAME == 0x8000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ENCRYPT_NAME);
	LASSERTF(OBD_CONNECT2_DMV_IMP_INHERIT == 0x20000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_DMV_IMP_INHERIT);
	LASSERTF(OBD_CONNECT2_ENCRYPT_FID2PATH == 0x40000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_ENCRYPT_FID2PATH);
	LASSERTF(OBD_CONNECT2_REPLAY_CREATE == 0x80000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_REPLAY_CREATE);
	LASSERTF(OBD_CONNECT2_LARGE_NID == 0x100000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_LARGE_NID);
	LASSERTF(OBD_CONNECT2_COMPRESS == 0x200000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_COMPRESS);
	LASSERTF(OBD_CONNECT2_UNALIGNED_DIO == 0x400000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_UNALIGNED_DIO);
	LASSERTF(OBD_CONNECT2_CONN_POLICY == 0x800000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_CONN_POLICY);
	LASSERTF(OBD_CONNECT2_SPARSE == 0x1000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_SPARSE);
	LASSERTF(OBD_CONNECT2_MIRROR_ID_FIX == 0x2000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_MIRROR_ID_FIX);
	LASSERTF(OBD_CONNECT2_UPDATE_LAYOUT == 0x4000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_UPDATE_LAYOUT);
	LASSERTF(OBD_CONNECT2_FLR_EC == 0x10000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_FLR_EC);
	LASSERTF(OBD_CONNECT2_FLR_IMMED_MIRROR == 0x20000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_FLR_IMMED_MIRROR);
	LASSERTF(OBD_CONNECT2_NO_APPEND == 0x40000000000ULL, "found 0x%.16llxULL\n",
		 OBD_CONNECT2_NO_APPEND);

	LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_CRC32);
	LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_ADLER);
	LASSERTF(OBD_CKSUM_CRC32C == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_CRC32C);
	LASSERTF(OBD_CKSUM_RESERVED == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_RESERVED);
	LASSERTF(OBD_CKSUM_T10IP512 == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_T10IP512);
	LASSERTF(OBD_CKSUM_T10IP4K == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_T10IP4K);
	LASSERTF(OBD_CKSUM_T10CRC512 == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_T10CRC512);
	LASSERTF(OBD_CKSUM_T10CRC4K == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_T10CRC4K);
	LASSERTF(OBD_CKSUM_T10_TOP == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)OBD_CKSUM_T10_TOP);

	/* Checks for struct obdo */
	LASSERTF((int)sizeof(struct obdo) == 208, "found %lld\n",
		 (long long)(int)sizeof(struct obdo));
	LASSERTF((int)offsetof(struct obdo, o_valid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_valid));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_valid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_valid));
	LASSERTF((int)offsetof(struct obdo, o_oi) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_oi));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_oi));
	LASSERTF((int)offsetof(struct obdo, o_parent_seq) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_parent_seq));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_parent_seq) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_parent_seq));
	LASSERTF((int)offsetof(struct obdo, o_size) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_size));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_size));
	LASSERTF((int)offsetof(struct obdo, o_mtime) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_mtime));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_mtime));
	LASSERTF((int)offsetof(struct obdo, o_atime) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_atime));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_atime));
	LASSERTF((int)offsetof(struct obdo, o_ctime) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_ctime));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_ctime));
	LASSERTF((int)offsetof(struct obdo, o_blocks) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_blocks));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_blocks));
	LASSERTF((int)offsetof(struct obdo, o_grant) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_grant));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_grant) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_grant));
	LASSERTF((int)offsetof(struct obdo, o_blksize) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_blksize));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_blksize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_blksize));
	LASSERTF((int)offsetof(struct obdo, o_mode) == 84, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_mode));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_mode));
	LASSERTF((int)offsetof(struct obdo, o_uid) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_uid));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_uid));
	LASSERTF((int)offsetof(struct obdo, o_gid) == 92, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_gid));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_gid));
	LASSERTF((int)offsetof(struct obdo, o_flags) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_flags));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_flags));
	LASSERTF((int)offsetof(struct obdo, o_nlink) == 100, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_nlink));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_nlink) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_nlink));
	LASSERTF((int)offsetof(struct obdo, o_parent_oid) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_parent_oid));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_parent_oid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_parent_oid));
	LASSERTF((int)offsetof(struct obdo, o_misc) == 108, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_misc));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_misc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_misc));
	LASSERTF((int)offsetof(struct obdo, o_ioepoch) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_ioepoch));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_ioepoch) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_ioepoch));
	LASSERTF((int)offsetof(struct obdo, o_stripe_idx) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_stripe_idx));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_stripe_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_stripe_idx));
	LASSERTF((int)offsetof(struct obdo, o_parent_ver) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_parent_ver));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_parent_ver) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_parent_ver));
	LASSERTF((int)offsetof(struct obdo, o_handle) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_handle));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_handle));
	LASSERTF((int)offsetof(struct obdo, o_layout) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_layout));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_layout) == 28, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_layout));
	LASSERTF((int)offsetof(struct obdo, o_layout_version) == 164, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_layout_version));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_layout_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_layout_version));
	LASSERTF((int)offsetof(struct obdo, o_uid_h) == 168, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_uid_h));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_uid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_uid_h));
	LASSERTF((int)offsetof(struct obdo, o_gid_h) == 172, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_gid_h));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_gid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_gid_h));
	LASSERTF((int)offsetof(struct obdo, o_data_version) == 176, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_data_version));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_data_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_data_version));
	LASSERTF((int)offsetof(struct obdo, o_projid) == 184, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_projid));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_projid));
	LASSERTF((int)offsetof(struct obdo, o_padding_4) == 188, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_padding_4));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_padding_4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_padding_4));
	LASSERTF((int)offsetof(struct obdo, o_padding_5) == 192, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_padding_5));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_padding_5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_padding_5));
	LASSERTF((int)offsetof(struct obdo, o_padding_6) == 200, "found %lld\n",
		 (long long)(int)offsetof(struct obdo, o_padding_6));
	LASSERTF((int)sizeof(((struct obdo *)0)->o_padding_6) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obdo *)0)->o_padding_6));
	LASSERTF(OBD_MD_FLID == (0x00000001ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLID);
	LASSERTF(OBD_MD_FLATIME == (0x00000002ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLATIME);
	LASSERTF(OBD_MD_FLMTIME == (0x00000004ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLMTIME);
	LASSERTF(OBD_MD_FLCTIME == (0x00000008ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLCTIME);
	LASSERTF(OBD_MD_FLSIZE == (0x00000010ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLSIZE);
	LASSERTF(OBD_MD_FLBLOCKS == (0x00000020ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLBLOCKS);
	LASSERTF(OBD_MD_FLBLKSZ == (0x00000040ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLBLKSZ);
	LASSERTF(OBD_MD_FLMODE == (0x00000080ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLMODE);
	LASSERTF(OBD_MD_FLTYPE == (0x00000100ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLTYPE);
	LASSERTF(OBD_MD_FLUID == (0x00000200ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLUID);
	LASSERTF(OBD_MD_FLGID == (0x00000400ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLGID);
	LASSERTF(OBD_MD_FLFLAGS == (0x00000800ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLFLAGS);
	LASSERTF(OBD_MD_DOM_SIZE == (0x00001000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_DOM_SIZE);
	LASSERTF(OBD_MD_FLNLINK == (0x00002000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLNLINK);
	LASSERTF(OBD_MD_FLPARENT == (0x00004000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLPARENT);
	LASSERTF(OBD_MD_FLRDEV == (0x00010000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLRDEV);
	LASSERTF(OBD_MD_FLEASIZE == (0x00020000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLEASIZE);
	LASSERTF(OBD_MD_LINKNAME == (0x00040000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_LINKNAME);
	LASSERTF(OBD_MD_FLHANDLE == (0x00080000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLHANDLE);
	LASSERTF(OBD_MD_FLCKSUM == (0x00100000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLCKSUM);
	LASSERTF(OBD_MD_FLPRJQUOTA == (0x00400000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLPRJQUOTA);
	LASSERTF(OBD_MD_FLGROUP == (0x01000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLGROUP);
	LASSERTF(OBD_MD_FLFID == (0x02000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLFID);
	LASSERTF(OBD_MD_FLGRANT == (0x08000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLGRANT);
	LASSERTF(OBD_MD_FLDIREA == (0x10000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLDIREA);
	LASSERTF(OBD_MD_FLUSRQUOTA == (0x20000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLUSRQUOTA);
	LASSERTF(OBD_MD_FLGRPQUOTA == (0x40000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLGRPQUOTA);
	LASSERTF(OBD_MD_FLMODEASIZE == (0x80000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLMODEASIZE);
	LASSERTF(OBD_MD_MDS == (0x0000000100000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_MDS);
	LASSERTF(OBD_MD_MEA == (0x0000000400000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_MEA);
	LASSERTF(OBD_MD_TSTATE == (0x0000000800000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_TSTATE);
	LASSERTF(OBD_MD_FLXATTR == (0x0000001000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLXATTR);
	LASSERTF(OBD_MD_FLXATTRLS == (0x0000002000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLXATTRLS);
	LASSERTF(OBD_MD_FLXATTRRM == (0x0000004000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLXATTRRM);
	LASSERTF(OBD_MD_FLACL == (0x0000008000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLACL);
	LASSERTF(OBD_MD_FLAGSTATFS == (0x0000010000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLAGSTATFS);
	LASSERTF(OBD_MD_FLCROSSREF == (0x0000100000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLCROSSREF);
	LASSERTF(OBD_MD_FLGETATTRLOCK == (0x0000200000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLGETATTRLOCK);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(OBD_MD_FLOBJCOUNT == (0x0000400000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLOBJCOUNT);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(OBD_MD_FLDATAVERSION == (0x0010000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLDATAVERSION);
	LASSERTF(OBD_MD_CLOSE_INTENT_EXECED == (0x0020000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_CLOSE_INTENT_EXECED);
	LASSERTF(OBD_MD_DEFAULT_MEA == (0x0040000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_DEFAULT_MEA);
	LASSERTF(OBD_MD_FLOSTLAYOUT == (0x0080000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLOSTLAYOUT);
	LASSERTF(OBD_MD_FLPROJID == (0x0100000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLPROJID);
	LASSERTF(OBD_MD_SECCTX == (0x0200000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_SECCTX);
	LASSERTF(OBD_MD_FLLAZYSIZE == (0x0400000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLLAZYSIZE);
	LASSERTF(OBD_MD_FLLAZYBLOCKS == (0x0800000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_FLLAZYBLOCKS);
	LASSERTF(OBD_MD_ENCCTX == (0x2000000000000000ULL), "found 0x%.16llxULL\n",
		 OBD_MD_ENCCTX);
	BUILD_BUG_ON(OBD_FL_INLINEDATA != 0x00000001);
	BUILD_BUG_ON(OBD_FL_OBDMDEXISTS != 0x00000002);
	BUILD_BUG_ON(OBD_FL_DELORPHAN != 0x00000004);
	BUILD_BUG_ON(OBD_FL_NORPC != 0x00000008);
	BUILD_BUG_ON(OBD_FL_IDONLY != 0x00000010);
	BUILD_BUG_ON(OBD_FL_RECREATE_OBJS != 0x00000020);
	BUILD_BUG_ON(OBD_FL_DEBUG_CHECK != 0x00000040);
	BUILD_BUG_ON(OBD_FL_NO_PRJQUOTA != 0x00000080);
	BUILD_BUG_ON(OBD_FL_NO_USRQUOTA != 0x00000100);
	BUILD_BUG_ON(OBD_FL_NO_GRPQUOTA != 0x00000200);
	BUILD_BUG_ON(OBD_FL_CREATE_CROW != 0x00000400);
	BUILD_BUG_ON(OBD_FL_SRVLOCK != 0x00000800);
	BUILD_BUG_ON(OBD_FL_CKSUM_CRC32 != 0x00001000);
	BUILD_BUG_ON(OBD_FL_CKSUM_ADLER != 0x00002000);
	BUILD_BUG_ON(OBD_FL_CKSUM_CRC32C != 0x00004000);
	BUILD_BUG_ON(OBD_FL_CKSUM_T10IP512 != 0x00005000);
	BUILD_BUG_ON(OBD_FL_CKSUM_T10IP4K != 0x00006000);
	BUILD_BUG_ON(OBD_FL_CKSUM_T10CRC512 != 0x00007000);
	BUILD_BUG_ON(OBD_FL_CKSUM_T10CRC4K != 0x00008000);
	BUILD_BUG_ON(OBD_FL_CKSUM_RSVD3 != 0x00010000);
	BUILD_BUG_ON(OBD_FL_SHRINK_GRANT != 0x00020000);
	BUILD_BUG_ON(OBD_FL_MMAP != 0x00040000);
	BUILD_BUG_ON(OBD_FL_RECOV_RESEND != 0x00080000);
	BUILD_BUG_ON(OBD_FL_NOSPC_BLK != 0x00100000);
	BUILD_BUG_ON(OBD_FL_FLUSH != 0x00200000);
	BUILD_BUG_ON(OBD_FL_SHORT_IO != 0x00400000);

	/* Checks for struct lov_ost_data_v1 */
	LASSERTF((int)sizeof(struct lov_ost_data_v1) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct lov_ost_data_v1));
	LASSERTF((int)offsetof(struct lov_ost_data_v1, l_ost_oi) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_ost_data_v1, l_ost_oi));
	LASSERTF((int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_oi));
	LASSERTF((int)offsetof(struct lov_ost_data_v1, l_ost_gen) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_ost_data_v1, l_ost_gen));
	LASSERTF((int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_gen));
	LASSERTF((int)offsetof(struct lov_ost_data_v1, l_ost_idx) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lov_ost_data_v1, l_ost_idx));
	LASSERTF((int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_ost_data_v1 *)0)->l_ost_idx));

	/* Checks for struct lov_mds_md_v1 */
	LASSERTF((int)sizeof(struct lov_mds_md_v1) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lov_mds_md_v1));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_magic));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_pattern) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_pattern));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_pattern) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_pattern));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_oi) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_oi));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_oi));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_stripe_size) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_stripe_size));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_stripe_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_stripe_size));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_stripe_count) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_stripe_count));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_stripe_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_stripe_count));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_layout_gen) == 30, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_layout_gen));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_layout_gen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_layout_gen));
	LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_objects[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_objects[0]));
	LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_objects[0]) == 24, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_objects[0]));
	BUILD_BUG_ON(LOV_MAGIC_V1 != (0x0BD10000 | 0x0BD0));

	/* Checks for struct lov_mds_md_v3 */
	LASSERTF((int)sizeof(struct lov_mds_md_v3) == 48, "found %lld\n",
		 (long long)(int)sizeof(struct lov_mds_md_v3));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_magic));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_pattern) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_pattern));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_pattern) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_pattern));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_oi) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_oi));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_oi));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_stripe_size) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_stripe_size));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_stripe_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_stripe_size));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_stripe_count) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_stripe_count));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_stripe_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_stripe_count));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_layout_gen) == 30, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_layout_gen));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_layout_gen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_layout_gen));
	BUILD_BUG_ON(LOV_MAXPOOLNAME != 15);
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_pool_name[15 + 1]) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_pool_name[15 + 1]));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_pool_name[15 + 1]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_pool_name[15 + 1]));
	LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_objects[0]) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_objects[0]));
	LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_objects[0]) == 24, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_objects[0]));
	BUILD_BUG_ON(LOV_MAGIC_V3 != (0x0BD30000 | 0x0BD0));
	LASSERTF(LOV_PATTERN_RAID0 == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LOV_PATTERN_RAID0);
	LASSERTF(LOV_PATTERN_RAID1 == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)LOV_PATTERN_RAID1);
	LASSERTF(LOV_PATTERN_PARITY == 0x00000004UL, "found 0x%.8xUL\n",
		 (unsigned int)LOV_PATTERN_PARITY);
	LASSERTF(LOV_PATTERN_MDT == 0x00000100UL, "found 0x%.8xUL\n",
		(unsigned)LOV_PATTERN_MDT);
	LASSERTF(LOV_PATTERN_OVERSTRIPING == 0x00000200UL, "found 0x%.8xUL\n",
		(unsigned)LOV_PATTERN_OVERSTRIPING);

	/* Checks for struct lov_foreign_md */
	LASSERTF((int)sizeof(struct lov_foreign_md) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct lov_foreign_md));
	LASSERTF((int)offsetof(struct lov_foreign_md, lfm_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_foreign_md, lfm_magic));
	LASSERTF((int)sizeof(((struct lov_foreign_md *)0)->lfm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_foreign_md *)0)->lfm_magic));
	LASSERTF((int)offsetof(struct lov_foreign_md, lfm_length) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_foreign_md, lfm_length));
	LASSERTF((int)sizeof(((struct lov_foreign_md *)0)->lfm_length) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_foreign_md *)0)->lfm_length));
	LASSERTF((int)offsetof(struct lov_foreign_md, lfm_type) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_foreign_md, lfm_type));
	LASSERTF((int)sizeof(((struct lov_foreign_md *)0)->lfm_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_foreign_md *)0)->lfm_type));
	LASSERTF((int)offsetof(struct lov_foreign_md, lfm_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lov_foreign_md, lfm_flags));
	LASSERTF((int)sizeof(((struct lov_foreign_md *)0)->lfm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_foreign_md *)0)->lfm_flags));
	LASSERTF((int)offsetof(struct lov_foreign_md, lfm_value[0]) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_foreign_md, lfm_value[0]));
	LASSERTF((int)sizeof(((struct lov_foreign_md *)0)->lfm_value[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_foreign_md *)0)->lfm_value[0]));
	LASSERTF(LU_FOREIGN_TYPE_NONE == 0x00000000UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_NONE);
	LASSERTF(LU_FOREIGN_TYPE_POSIX == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_POSIX);
	LASSERTF(LU_FOREIGN_TYPE_PCCRW == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_PCCRW);
	LASSERTF(LU_FOREIGN_TYPE_PCCRO == 0x00000003UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_PCCRO);
	LASSERTF(LU_FOREIGN_TYPE_S3 == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_S3);
	LASSERTF(LU_FOREIGN_TYPE_SYMLINK == 0x0000da05UL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_SYMLINK);
	LASSERTF(LU_FOREIGN_TYPE_UNKNOWN == 0xffffffffUL, "found 0x%.8xUL\n",
		(unsigned)LU_FOREIGN_TYPE_UNKNOWN);
	BUILD_BUG_ON(LOV_MAGIC_FOREIGN != (0x0BD70000 | 0x0BD0));
	LASSERTF(LOV_PATTERN_FOREIGN == 0x00000400UL, "found 0x%.8xUL\n",
		(unsigned)LOV_PATTERN_FOREIGN);

	/* Checks for struct lov_hsm_base */
	LASSERTF((int)sizeof(struct lov_hsm_base) == 56, "found %lld\n",
		 (long long)(int)sizeof(struct lov_hsm_base));
	LASSERTF((int)offsetof(struct lov_hsm_base, lhb_archive_id) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_base, lhb_archive_id));
	LASSERTF((int)sizeof(((struct lov_hsm_base *)0)->lhb_archive_id) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_base *)0)->lhb_archive_id));
	LASSERTF((int)offsetof(struct lov_hsm_base, lhb_archive_ver) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_base, lhb_archive_ver));
	LASSERTF((int)sizeof(((struct lov_hsm_base *)0)->lhb_archive_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_base *)0)->lhb_archive_ver));
	LASSERTF((int)offsetof(struct lov_hsm_base, lhb_uuid[0]) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_base, lhb_uuid[0]));
	LASSERTF((int)sizeof(((struct lov_hsm_base *)0)->lhb_uuid[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_base *)0)->lhb_uuid[0]));

	/* Checks for struct lov_hsm_md */
	LASSERTF((int)sizeof(struct lov_hsm_md) == 72, "found %lld\n",
		 (long long)(int)sizeof(struct lov_hsm_md));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_magic));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_magic));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_length) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_length));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_length) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_length));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_type) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_type));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_type));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_flags));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_flags));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_archive_id) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_archive_id));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_archive_id) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_archive_id));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_archive_ver) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_archive_ver));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_archive_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_archive_ver));
	LASSERTF((int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_uuid[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lov_hsm_md, lhm_hsm.lhb_uuid[0]));
	LASSERTF((int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_uuid[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_hsm_md *)0)->lhm_hsm.lhb_uuid[0]));

	/* Checks for struct lov_comp_md_entry_v1 */
	LASSERTF((int)sizeof(struct lov_comp_md_entry_v1) == 48, "found %lld\n",
		 (long long)(int)sizeof(struct lov_comp_md_entry_v1));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_id) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_id));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_id));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_flags));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_flags));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_extent) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_extent));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_extent) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_extent));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_offset) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_offset));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_offset) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_offset));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_size) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_size));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_size));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_layout_gen) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_layout_gen));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_layout_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_layout_gen));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_timestamp) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_timestamp));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_timestamp) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_timestamp));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_dstripe_count) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_dstripe_count));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_dstripe_count) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_dstripe_count));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_cstripe_count) == 45, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_cstripe_count));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_cstripe_count) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_cstripe_count));
	LASSERTF((int)offsetof(struct lov_comp_md_entry_v1, lcme_compr_type) == 46, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_entry_v1, lcme_compr_type));
	LASSERTF((int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_compr_type) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_entry_v1 *)0)->lcme_compr_type));
	/* lov_comp_md_entry_v1.lcme_compr_lvl is a bitfield and cannot be checked */
	/* lov_comp_md_entry_v1.lcme_compr_chunk_log_bits is a bitfield and cannot be checked */
	BUILD_BUG_ON(LCME_FL_STALE != 0x00000001);
	BUILD_BUG_ON(LCME_FL_PREF_RD != 0x00000002);
	BUILD_BUG_ON(LCME_FL_PREF_WR != 0x00000004);
	BUILD_BUG_ON(LCME_FL_PREF_RW != 0x00000006);
	BUILD_BUG_ON(LCME_FL_OFFLINE != 0x00000008);
	BUILD_BUG_ON(LCME_FL_INIT != 0x00000010);
	BUILD_BUG_ON(LCME_FL_NOSYNC != 0x00000020);
	BUILD_BUG_ON(LCME_FL_EXTENSION != 0x00000040);
	BUILD_BUG_ON(LCME_FL_PARITY != 0x00000080);
	BUILD_BUG_ON(LCME_FL_COMPRESS != 0x00000100);
	BUILD_BUG_ON(LCME_FL_PARTIAL != 0x00000200);
	BUILD_BUG_ON(LCME_FL_NOCOMPR != 0x00000400);
	BUILD_BUG_ON(LCME_FL_NEG != 0x80000000);

	/* Checks for struct lov_comp_md_v1 */
	LASSERTF((int)sizeof(struct lov_comp_md_v1) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lov_comp_md_v1));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_magic));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_magic));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_size) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_size));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_size));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_layout_gen) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_layout_gen));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_layout_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_layout_gen));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_flags));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_flags));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_entry_count) == 14, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_entry_count));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_entry_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_entry_count));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_mirror_count) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_mirror_count));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_mirror_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_mirror_count));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_ec_count) == 18, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_ec_count));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_ec_count) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_ec_count));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_padding3) == 19, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_padding3));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding3) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding3));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_padding1) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_padding1));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding1));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_padding2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_padding2));
	LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_padding2));
	LASSERTF((int)offsetof(struct lov_comp_md_v1, lcm_entries) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lov_comp_md_v1, lcm_entries));
	LASSERTF((int)sizeof(*((struct lov_comp_md_v1 *)0)->lcm_entries) == 48, "found %lld\n",
		 (long long)(int)sizeof(*((struct lov_comp_md_v1 *)0)->lcm_entries));
	BUILD_BUG_ON(offsetof(struct lov_comp_md_v1, lcm_entries) != sizeof(struct lov_comp_md_v1));
	BUILD_BUG_ON(LOV_MAGIC_COMP_V1 != (0x0BD60000 | 0x0BD0));
	LASSERTF(LCM_FL_NONE == 0, "found %lld\n",
		 (long long)LCM_FL_NONE);
	LASSERTF(LCM_FL_RDONLY == 1, "found %lld\n",
		 (long long)LCM_FL_RDONLY);
	LASSERTF(LCM_FL_WRITE_PENDING == 2, "found %lld\n",
		 (long long)LCM_FL_WRITE_PENDING);
	LASSERTF(LCM_FL_SYNC_PENDING == 3, "found %lld\n",
		 (long long)LCM_FL_SYNC_PENDING);
	LASSERTF(LCM_FL_PCC_RDONLY == 8, "found %lld\n",
		 (long long)LCM_FL_PCC_RDONLY);
	LASSERTF(LCM_FL_FLR_MASK == 11, "found %lld\n",
		 (long long)LCM_FL_FLR_MASK);

	/* Checks for struct lmv_mds_md_v1 */
	LASSERTF((int)sizeof(struct lmv_mds_md_v1) == 56, "found %lld\n",
		 (long long)(int)sizeof(struct lmv_mds_md_v1));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_magic));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_magic));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_stripe_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_stripe_count));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_stripe_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_stripe_count));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_master_mdt_index) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_master_mdt_index));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_master_mdt_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_master_mdt_index));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_hash_type) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_hash_type));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_hash_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_hash_type));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_layout_version) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_layout_version));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_layout_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_layout_version));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_migrate_offset) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_migrate_offset));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_migrate_offset) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_migrate_offset));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_migrate_hash) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_migrate_hash));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_migrate_hash) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_migrate_hash));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_padding2) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_padding2));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_padding2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_padding2));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_padding3) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_padding3));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_padding3));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_pool_name[15 + 1]) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_pool_name[15 + 1]));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_pool_name[15 + 1]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_pool_name[15 + 1]));
	LASSERTF((int)offsetof(struct lmv_mds_md_v1, lmv_stripe_fids[0]) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_mds_md_v1, lmv_stripe_fids[0]));
	LASSERTF((int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_stripe_fids[0]) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_mds_md_v1 *)0)->lmv_stripe_fids[0]));
	BUILD_BUG_ON(LMV_MAGIC_V1 != 0x0CD20CD0);
	BUILD_BUG_ON(LMV_MAGIC_STRIPE != 0x0CD40CD0);
	BUILD_BUG_ON(LMV_HASH_TYPE_MASK != 0x0000ffff);
	BUILD_BUG_ON(LMV_HASH_FLAG_OVERSTRIPED != 0x01000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_FIXED != 0x02000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_MERGE != 0x04000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_SPLIT != 0x08000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_LOST_LMV != 0x10000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_BAD_TYPE != 0x20000000);
	BUILD_BUG_ON(LMV_HASH_FLAG_MIGRATION != 0x80000000);
	BUILD_BUG_ON(LMV_CRUSH_PG_COUNT != 4096);

	/* Checks for struct obd_statfs */
	LASSERTF((int)sizeof(struct obd_statfs) == 144, "found %lld\n",
		 (long long)(int)sizeof(struct obd_statfs));
	LASSERTF((int)offsetof(struct obd_statfs, os_type) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_type));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_type) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_type));
	LASSERTF((int)offsetof(struct obd_statfs, os_blocks) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_blocks));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_blocks));
	LASSERTF((int)offsetof(struct obd_statfs, os_bfree) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_bfree));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_bfree) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_bfree));
	LASSERTF((int)offsetof(struct obd_statfs, os_bavail) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_bavail));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_bavail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_bavail));
	LASSERTF((int)offsetof(struct obd_statfs, os_files) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_files));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_files) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_files));
	LASSERTF((int)offsetof(struct obd_statfs, os_ffree) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_ffree));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_ffree) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_ffree));
	LASSERTF((int)offsetof(struct obd_statfs, os_fsid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_fsid));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_fsid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_fsid));
	LASSERTF((int)offsetof(struct obd_statfs, os_bsize) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_bsize));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_bsize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_bsize));
	LASSERTF((int)offsetof(struct obd_statfs, os_namelen) == 92, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_namelen));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_namelen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_namelen));
	LASSERTF((int)offsetof(struct obd_statfs, os_maxbytes) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_maxbytes));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_maxbytes) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_maxbytes));
	LASSERTF((int)offsetof(struct obd_statfs, os_state) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_state));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_state) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_state));
	LASSERTF((int)offsetof(struct obd_statfs, os_fprecreated) == 108, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_fprecreated));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_fprecreated) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_fprecreated));
	LASSERTF((int)offsetof(struct obd_statfs, os_granted) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_granted));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_granted) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_granted));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare3) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare3));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare3));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare4) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare4));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare4));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare5) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare5));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare5) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare5));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare6) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare6));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare6) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare6));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare7) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare7));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare7) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare7));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare8) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare8));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare8) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare8));
	LASSERTF((int)offsetof(struct obd_statfs, os_spare9) == 140, "found %lld\n",
		 (long long)(int)offsetof(struct obd_statfs, os_spare9));
	LASSERTF((int)sizeof(((struct obd_statfs *)0)->os_spare9) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_statfs *)0)->os_spare9));
	LASSERTF(OS_STATFS_DEGRADED == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_DEGRADED);
	LASSERTF(OS_STATFS_READONLY == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_READONLY);
	LASSERTF(OS_STATFS_NOCREATE == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_NOCREATE);
	LASSERTF(OS_STATFS_ENOSPC == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_ENOSPC);
	LASSERTF(OS_STATFS_ENOINO == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_ENOINO);
	LASSERTF(OS_STATFS_SUM == 0x00000100UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_SUM);
	LASSERTF(OS_STATFS_NONROT == 0x00000200UL, "found 0x%.8xUL\n",
		(unsigned)OS_STATFS_NONROT);

	/* Checks for struct obd_ioobj */
	LASSERTF((int)sizeof(struct obd_ioobj) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct obd_ioobj));
	LASSERTF((int)offsetof(struct obd_ioobj, ioo_oid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_ioobj, ioo_oid));
	LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_oid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_oid));
	LASSERTF((int)offsetof(struct obd_ioobj, ioo_max_brw) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_ioobj, ioo_max_brw));
	LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_max_brw) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_max_brw));
	LASSERTF((int)offsetof(struct obd_ioobj, ioo_bufcnt) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct obd_ioobj, ioo_bufcnt));
	LASSERTF((int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_ioobj *)0)->ioo_bufcnt));
	LASSERTF(IOOBJ_MAX_BRW_BITS == 16, "found %lld\n",
		 (long long)IOOBJ_MAX_BRW_BITS);

	/* Checks for union lquota_id */
	LASSERTF((int)sizeof(union lquota_id) == 16, "found %lld\n",
		 (long long)(int)sizeof(union lquota_id));

	LASSERTF(QIF_DQBLKSIZE_BITS == 10, "found %lld\n",
		 (long long)QIF_DQBLKSIZE_BITS);
	LASSERTF(QIF_DQBLKSIZE == 1024, "found %lld\n",
		 (long long)QIF_DQBLKSIZE);

	/* Checks for struct obd_quotactl */
	LASSERTF((int)sizeof(struct obd_quotactl) == 112, "found %lld\n",
		 (long long)(int)sizeof(struct obd_quotactl));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_cmd) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_cmd));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_cmd) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_cmd));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_type) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_type));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_type));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_id) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_id));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_id));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_stat) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_stat));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_stat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_stat));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_dqinfo) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_dqinfo));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_dqinfo) == 24, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_dqinfo));
	LASSERTF((int)offsetof(struct obd_quotactl, qc_dqblk) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct obd_quotactl, qc_dqblk));
	LASSERTF((int)sizeof(((struct obd_quotactl *)0)->qc_dqblk) == 72, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_quotactl *)0)->qc_dqblk));

	/* Checks for struct obd_dqinfo */
	LASSERTF((int)sizeof(struct obd_dqinfo) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct obd_dqinfo));
	LASSERTF((int)offsetof(struct obd_dqinfo, dqi_bgrace) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqinfo, dqi_bgrace));
	LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_bgrace) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_bgrace));
	LASSERTF((int)offsetof(struct obd_dqinfo, dqi_igrace) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqinfo, dqi_igrace));
	LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_igrace) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_igrace));
	LASSERTF((int)offsetof(struct obd_dqinfo, dqi_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqinfo, dqi_flags));
	LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_flags));
	LASSERTF((int)offsetof(struct obd_dqinfo, dqi_valid) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqinfo, dqi_valid));
	LASSERTF((int)sizeof(((struct obd_dqinfo *)0)->dqi_valid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqinfo *)0)->dqi_valid));

	/* Checks for struct obd_dqblk */
	LASSERTF((int)sizeof(struct obd_dqblk) == 72, "found %lld\n",
		 (long long)(int)sizeof(struct obd_dqblk));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_bhardlimit) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_bhardlimit));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_bhardlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_bhardlimit));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_bsoftlimit) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_bsoftlimit));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_bsoftlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_bsoftlimit));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_curspace) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_curspace));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_curspace) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_curspace));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_ihardlimit) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_ihardlimit));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_ihardlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_ihardlimit));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_isoftlimit) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_isoftlimit));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_isoftlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_isoftlimit));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_curinodes) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_curinodes));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_curinodes) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_curinodes));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_btime) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_btime));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_btime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_btime));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_itime) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_itime));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_itime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_itime));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_valid) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_valid));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_valid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_valid));
	LASSERTF((int)offsetof(struct obd_dqblk, dqb_padding) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct obd_dqblk, dqb_padding));
	LASSERTF((int)sizeof(((struct obd_dqblk *)0)->dqb_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct obd_dqblk *)0)->dqb_padding));
	LASSERTF(Q_QUOTACHECK == 0x800100, "found 0x%.8x\n",
		Q_QUOTACHECK);
	LASSERTF(Q_INITQUOTA == 0x800101, "found 0x%.8x\n",
		Q_INITQUOTA);
	LASSERTF(Q_GETOINFO == 0x800102, "found 0x%.8x\n",
		Q_GETOINFO);
	LASSERTF(Q_GETOQUOTA == 0x800103, "found 0x%.8x\n",
		Q_GETOQUOTA);
	LASSERTF(Q_FINVALIDATE == 0x800104, "found 0x%.8x\n",
		Q_FINVALIDATE);

#ifdef HAVE_SERVER_SUPPORT

	/* Checks for struct lquota_acct_rec */
	LASSERTF((int)sizeof(struct lquota_acct_rec) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct lquota_acct_rec));
	LASSERTF((int)offsetof(struct lquota_acct_rec, bspace) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_acct_rec, bspace));
	LASSERTF((int)sizeof(((struct lquota_acct_rec *)0)->bspace) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_acct_rec *)0)->bspace));
	LASSERTF((int)offsetof(struct lquota_acct_rec, ispace) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_acct_rec, ispace));
	LASSERTF((int)sizeof(((struct lquota_acct_rec *)0)->ispace) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_acct_rec *)0)->ispace));

	/* Checks for struct lquota_glb_rec */
	LASSERTF((int)sizeof(struct lquota_glb_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lquota_glb_rec));
	LASSERTF((int)offsetof(struct lquota_glb_rec, qbr_hardlimit) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_glb_rec, qbr_hardlimit));
	LASSERTF((int)sizeof(((struct lquota_glb_rec *)0)->qbr_hardlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_glb_rec *)0)->qbr_hardlimit));
	LASSERTF((int)offsetof(struct lquota_glb_rec, qbr_softlimit) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_glb_rec, qbr_softlimit));
	LASSERTF((int)sizeof(((struct lquota_glb_rec *)0)->qbr_softlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_glb_rec *)0)->qbr_softlimit));
	LASSERTF((int)offsetof(struct lquota_glb_rec, qbr_time) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_glb_rec, qbr_time));
	LASSERTF((int)sizeof(((struct lquota_glb_rec *)0)->qbr_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_glb_rec *)0)->qbr_time));
	LASSERTF((int)offsetof(struct lquota_glb_rec, qbr_granted) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_glb_rec, qbr_granted));
	LASSERTF((int)sizeof(((struct lquota_glb_rec *)0)->qbr_granted) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_glb_rec *)0)->qbr_granted));

	/* Checks for struct lquota_slv_rec */
	LASSERTF((int)sizeof(struct lquota_slv_rec) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct lquota_slv_rec));
	LASSERTF((int)offsetof(struct lquota_slv_rec, qsr_granted) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_slv_rec, qsr_granted));
	LASSERTF((int)sizeof(((struct lquota_slv_rec *)0)->qsr_granted) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_slv_rec *)0)->qsr_granted));

	/* Checks for struct idx_info */
	LASSERTF((int)sizeof(struct idx_info) == 80, "found %lld\n",
		 (long long)(int)sizeof(struct idx_info));
	LASSERTF((int)offsetof(struct idx_info, ii_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_magic));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_magic));
	LASSERTF((int)offsetof(struct idx_info, ii_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_flags));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_flags));
	LASSERTF((int)offsetof(struct idx_info, ii_count) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_count));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_count));
	LASSERTF((int)offsetof(struct idx_info, ii_pad0) == 10, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_pad0));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_pad0) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_pad0));
	LASSERTF((int)offsetof(struct idx_info, ii_attrs) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_attrs));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_attrs) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_attrs));
	LASSERTF((int)offsetof(struct idx_info, ii_fid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_fid));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_fid));
	LASSERTF((int)offsetof(struct idx_info, ii_version) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_version));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_version));
	LASSERTF((int)offsetof(struct idx_info, ii_hash_start) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_hash_start));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_hash_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_hash_start));
	LASSERTF((int)offsetof(struct idx_info, ii_hash_end) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_hash_end));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_hash_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_hash_end));
	LASSERTF((int)offsetof(struct idx_info, ii_keysize) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_keysize));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_keysize) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_keysize));
	LASSERTF((int)offsetof(struct idx_info, ii_recsize) == 58, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_recsize));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_recsize) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_recsize));
	LASSERTF((int)offsetof(struct idx_info, ii_pad1) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_pad1));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_pad1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_pad1));
	LASSERTF((int)offsetof(struct idx_info, ii_pad2) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_pad2));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_pad2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_pad2));
	LASSERTF((int)offsetof(struct idx_info, ii_pad3) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct idx_info, ii_pad3));
	LASSERTF((int)sizeof(((struct idx_info *)0)->ii_pad3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct idx_info *)0)->ii_pad3));
	BUILD_BUG_ON(IDX_INFO_MAGIC != 0x3D37CC37);

	/* Checks for struct lu_idxpage */
	LASSERTF((int)sizeof(struct lu_idxpage) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct lu_idxpage));
	LASSERTF((int)offsetof(struct lu_idxpage, lip_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_idxpage, lip_magic));
	LASSERTF((int)sizeof(((struct lu_idxpage *)0)->lip_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_idxpage *)0)->lip_magic));
	LASSERTF((int)offsetof(struct lu_idxpage, lip_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lu_idxpage, lip_flags));
	LASSERTF((int)sizeof(((struct lu_idxpage *)0)->lip_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_idxpage *)0)->lip_flags));
	LASSERTF((int)offsetof(struct lu_idxpage, lip_nr) == 6, "found %lld\n",
		 (long long)(int)offsetof(struct lu_idxpage, lip_nr));
	LASSERTF((int)sizeof(((struct lu_idxpage *)0)->lip_nr) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_idxpage *)0)->lip_nr));
	LASSERTF((int)offsetof(struct lu_idxpage, lip_pad0) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lu_idxpage, lip_pad0));
	LASSERTF((int)sizeof(((struct lu_idxpage *)0)->lip_pad0) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_idxpage *)0)->lip_pad0));
	BUILD_BUG_ON(LIP_MAGIC != 0x8A6D6B6C);
	BUILD_BUG_ON(LIP_HDR_SIZE != (__builtin_offsetof (struct lu_idxpage, lip_entries)));
	BUILD_BUG_ON(II_FL_NOHASH != 0x00000001);
	BUILD_BUG_ON(II_FL_VARKEY != 0x00000002);
	BUILD_BUG_ON(II_FL_VARREC != 0x00000004);
	BUILD_BUG_ON(II_FL_NONUNQ != 0x00000008);
	BUILD_BUG_ON(II_FL_NOKEY != 0x00000010);
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct niobuf_remote */
	LASSERTF((int)sizeof(struct niobuf_remote) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct niobuf_remote));
	LASSERTF((int)offsetof(struct niobuf_remote, rnb_offset) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct niobuf_remote, rnb_offset));
	LASSERTF((int)sizeof(((struct niobuf_remote *)0)->rnb_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct niobuf_remote *)0)->rnb_offset));
	LASSERTF((int)offsetof(struct niobuf_remote, rnb_len) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct niobuf_remote, rnb_len));
	LASSERTF((int)sizeof(((struct niobuf_remote *)0)->rnb_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct niobuf_remote *)0)->rnb_len));
	LASSERTF((int)offsetof(struct niobuf_remote, rnb_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct niobuf_remote, rnb_flags));
	LASSERTF((int)sizeof(((struct niobuf_remote *)0)->rnb_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct niobuf_remote *)0)->rnb_flags));
	LASSERTF(OBD_BRW_READ == 0x01, "found 0x%.8x\n",
		OBD_BRW_READ);
	LASSERTF(OBD_BRW_WRITE == 0x02, "found 0x%.8x\n",
		OBD_BRW_WRITE);
	LASSERTF(OBD_BRW_NDELAY == 0x04, "found 0x%.8x\n",
		OBD_BRW_NDELAY);
	LASSERTF(OBD_BRW_SYNC == 0x08, "found 0x%.8x\n",
		OBD_BRW_SYNC);
	LASSERTF(OBD_BRW_CHECK == 0x10, "found 0x%.8x\n",
		OBD_BRW_CHECK);
	LASSERTF(OBD_BRW_FROM_GRANT == 0x20, "found 0x%.8x\n",
		OBD_BRW_FROM_GRANT);
	LASSERTF(OBD_BRW_GRANTED == 0x40, "found 0x%.8x\n",
		OBD_BRW_GRANTED);
	LASSERTF(OBD_BRW_NOCACHE == 0x80, "found 0x%.8x\n",
		OBD_BRW_NOCACHE);
	LASSERTF(OBD_BRW_NOQUOTA == 0x100, "found 0x%.8x\n",
		OBD_BRW_NOQUOTA);
	LASSERTF(OBD_BRW_SRVLOCK == 0x200, "found 0x%.8x\n",
		OBD_BRW_SRVLOCK);
	LASSERTF(OBD_BRW_ASYNC == 0x400, "found 0x%.8x\n",
		OBD_BRW_ASYNC);
	LASSERTF(OBD_BRW_MEMALLOC == 0x800, "found 0x%.8x\n",
		OBD_BRW_MEMALLOC);
	LASSERTF(OBD_BRW_OVER_USRQUOTA == 0x1000, "found 0x%.8x\n",
		OBD_BRW_OVER_USRQUOTA);
	LASSERTF(OBD_BRW_OVER_GRPQUOTA == 0x2000, "found 0x%.8x\n",
		OBD_BRW_OVER_GRPQUOTA);
	LASSERTF(OBD_BRW_SOFT_SYNC == 0x4000, "found 0x%.8x\n",
		OBD_BRW_SOFT_SYNC);
	LASSERTF(OBD_BRW_OVER_PRJQUOTA == 0x8000, "found 0x%.8x\n",
		OBD_BRW_OVER_PRJQUOTA);
	LASSERTF(OBD_BRW_RDMA_ONLY == 0x20000, "found 0x%.8x\n",
		OBD_BRW_RDMA_ONLY);
	LASSERTF(OBD_BRW_SYS_RESOURCE == 0x40000, "found 0x%.8x\n",
		OBD_BRW_SYS_RESOURCE);
	LASSERTF(OBD_BRW_COMPRESSED == 0x80000, "found 0x%.8x\n",
		OBD_BRW_COMPRESSED);
	LASSERTF(OBD_BRW_SPECULATIVE_COMPR == 0x100000, "found 0x%.8x\n",
		OBD_BRW_SPECULATIVE_COMPR);

	/* Checks for struct ost_body */
	LASSERTF((int)sizeof(struct ost_body) == 208, "found %lld\n",
		 (long long)(int)sizeof(struct ost_body));
	LASSERTF((int)offsetof(struct ost_body, oa) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ost_body, oa));
	LASSERTF((int)sizeof(((struct ost_body *)0)->oa) == 208, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_body *)0)->oa));

	/* Checks for struct ll_fid */
	LASSERTF((int)sizeof(struct ll_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct ll_fid));
	LASSERTF((int)offsetof(struct ll_fid, id) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fid, id));
	LASSERTF((int)sizeof(((struct ll_fid *)0)->id) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fid *)0)->id));
	LASSERTF((int)offsetof(struct ll_fid, generation) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fid, generation));
	LASSERTF((int)sizeof(((struct ll_fid *)0)->generation) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fid *)0)->generation));
	LASSERTF((int)offsetof(struct ll_fid, f_type) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fid, f_type));
	LASSERTF((int)sizeof(((struct ll_fid *)0)->f_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fid *)0)->f_type));

	LASSERTF(MDS_CROSS_REF == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CROSS_REF);
	LASSERTF(MDS_PERM_BYPASS == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)MDS_PERM_BYPASS);
	LASSERTF(MDS_QUOTA_IGNORE == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)MDS_QUOTA_IGNORE);
	LASSERTF(MDS_KEEP_ORPHAN == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)MDS_KEEP_ORPHAN);
	LASSERTF(MDS_RECOV_OPEN == 0x00000100UL, "found 0x%.8xUL\n",
		(unsigned)MDS_RECOV_OPEN);
	LASSERTF(MDS_DATA_MODIFIED == 0x00000200UL, "found 0x%.8xUL\n",
		(unsigned)MDS_DATA_MODIFIED);
	LASSERTF(MDS_CREATE_VOLATILE == 0x00000400UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CREATE_VOLATILE);
	LASSERTF(MDS_OWNEROVERRIDE == 0x00000800UL, "found 0x%.8xUL\n",
		(unsigned)MDS_OWNEROVERRIDE);
	LASSERTF(MDS_HSM_RELEASE == 0x00001000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_HSM_RELEASE);
	LASSERTF(MDS_CLOSE_MIGRATE == 0x00002000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_MIGRATE);
	LASSERTF(MDS_CLOSE_LAYOUT_SWAP == 0x00004000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_LAYOUT_SWAP);
	LASSERTF(MDS_CLOSE_LAYOUT_MERGE == 0x00008000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_LAYOUT_MERGE);
	LASSERTF(MDS_CLOSE_RESYNC_DONE == 0x00010000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_RESYNC_DONE);
	LASSERTF(MDS_CLOSE_LAYOUT_SPLIT == 0x00020000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_LAYOUT_SPLIT);
	LASSERTF(MDS_TRUNC_KEEP_LEASE == 0x00040000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_TRUNC_KEEP_LEASE);
	LASSERTF(MDS_PCC_ATTACH == 0x00080000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_PCC_ATTACH);
	LASSERTF(MDS_CLOSE_UPDATE_TIMES == 0x00100000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_UPDATE_TIMES);
	LASSERTF(MDS_SETSTRIPE_CREATE == 0x00200000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_SETSTRIPE_CREATE);
	LASSERTF(MDS_FID_OP == 0x00400000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_FID_OP);
	LASSERTF(MDS_MIGRATE_NSONLY == 0x00800000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_MIGRATE_NSONLY);
	LASSERTF(MDS_CREATE_DEFAULT_LMV == 0x01000000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CREATE_DEFAULT_LMV);
	LASSERTF(MDS_CLOSE_LAYOUT_SWAP_HSM == 0x02000000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_CLOSE_LAYOUT_SWAP_HSM);
	LASSERTF(MDS_NAMEHASH == 0x04000000UL, "found 0x%.8xUL\n",
		(unsigned)MDS_NAMEHASH);

	/* Checks for struct mdt_body */
	LASSERTF((int)sizeof(struct mdt_body) == 216, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_body));
	LASSERTF((int)offsetof(struct mdt_body, mbo_fid1) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_fid1));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_fid1));
	LASSERTF((int)offsetof(struct mdt_body, mbo_fid2) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_fid2));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_fid2));
	LASSERTF((int)offsetof(struct mdt_body, mbo_open_handle) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_open_handle));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_open_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_open_handle));
	LASSERTF((int)offsetof(struct mdt_body, mbo_valid) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_valid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_valid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_valid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_size) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_size));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_size));
	LASSERTF((int)offsetof(struct mdt_body, mbo_mtime) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_mtime));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_mtime));
	LASSERTF((int)offsetof(struct mdt_body, mbo_atime) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_atime));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_atime));
	LASSERTF((int)offsetof(struct mdt_body, mbo_ctime) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_ctime));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_ctime));
	LASSERTF((int)offsetof(struct mdt_body, mbo_blocks) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_blocks));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_blocks));
	LASSERTF((int)offsetof(struct mdt_body, mbo_version) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_version));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_version));
	LASSERTF((int)offsetof(struct mdt_body, mbo_t_state) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_t_state));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_t_state) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_t_state));
	LASSERTF((int)offsetof(struct mdt_body, mbo_fsuid) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_fsuid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_fsuid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_fsgid) == 108, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_fsgid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_fsgid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_capability) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_capability));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_capability) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_capability));
	LASSERTF((int)offsetof(struct mdt_body, mbo_mode) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_mode));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_mode));
	LASSERTF((int)offsetof(struct mdt_body, mbo_uid) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_uid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_uid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_gid) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_gid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_gid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_flags) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_flags));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_flags));
	LASSERTF((int)offsetof(struct mdt_body, mbo_rdev) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_rdev));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_rdev) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_rdev));
	LASSERTF((int)offsetof(struct mdt_body, mbo_nlink) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_nlink));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_nlink) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_nlink));
	LASSERTF((int)offsetof(struct mdt_body, mbo_layout_gen) == 140, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_layout_gen));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_layout_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_layout_gen));
	LASSERTF((int)offsetof(struct mdt_body, mbo_suppgid) == 144, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_suppgid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_suppgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_suppgid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_eadatasize) == 148, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_eadatasize));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_eadatasize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_eadatasize));
	LASSERTF((int)offsetof(struct mdt_body, mbo_aclsize) == 152, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_aclsize));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_aclsize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_aclsize));
	LASSERTF((int)offsetof(struct mdt_body, mbo_max_mdsize) == 156, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_max_mdsize));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_max_mdsize) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_max_mdsize));
	LASSERTF((int)offsetof(struct mdt_body, mbo_unused3) == 160, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_unused3));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_unused3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_unused3));
	LASSERTF((int)offsetof(struct mdt_body, mbo_uid_h) == 164, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_uid_h));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_uid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_uid_h));
	LASSERTF((int)offsetof(struct mdt_body, mbo_gid_h) == 168, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_gid_h));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_gid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_gid_h));
	LASSERTF((int)offsetof(struct mdt_body, mbo_projid) == 172, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_projid));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_projid));
	LASSERTF((int)offsetof(struct mdt_body, mbo_dom_size) == 176, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_dom_size));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_dom_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_dom_size));
	LASSERTF((int)offsetof(struct mdt_body, mbo_dom_blocks) == 184, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_dom_blocks));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_dom_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_dom_blocks));
	LASSERTF((int)offsetof(struct mdt_body, mbo_btime) == 192, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_btime));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_btime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_btime));
	LASSERTF((int)offsetof(struct mdt_body, mbo_padding_9) == 200, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_padding_9));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_padding_9) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_padding_9));
	LASSERTF((int)offsetof(struct mdt_body, mbo_padding_10) == 208, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_body, mbo_padding_10));
	LASSERTF((int)sizeof(((struct mdt_body *)0)->mbo_padding_10) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_body *)0)->mbo_padding_10));
	LASSERTF(MDS_FMODE_CLOSED == 0000000000000000000000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_FMODE_CLOSED);
	LASSERTF(MDS_FMODE_EXEC == 0000000000000000000000004UL,
		 "found 0%.22lloUL\n", (long long)MDS_FMODE_EXEC);
	LASSERTF(MDS_OPEN_CREATED == 0000000000000000000000010UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_CREATED);
	LASSERTF(MDS_OPEN_CREAT == 0000000000000000000000100UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_CREAT);
	LASSERTF(MDS_OPEN_EXCL == 0000000000000000000000200UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_EXCL);
	LASSERTF(MDS_OPEN_TRUNC == 0000000000000000000001000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_TRUNC);
	LASSERTF(MDS_OPEN_APPEND == 0000000000000000000002000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_APPEND);
	LASSERTF(MDS_OPEN_SYNC == 0000000000000000000010000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_SYNC);
	LASSERTF(MDS_OPEN_DIRECTORY == 0000000000000000000200000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_DIRECTORY);
	LASSERTF(MDS_OPEN_BY_FID == 0000000000000000040000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_BY_FID);
	LASSERTF(MDS_OPEN_DELAY_CREATE == 0000000000000000100000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_DELAY_CREATE);
	LASSERTF(MDS_OPEN_OWNEROVERRIDE == 0000000000000000200000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_OWNEROVERRIDE);
	LASSERTF(MDS_OPEN_LOCK == 0000000000000004000000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_LOCK);
	LASSERTF(MDS_OPEN_HAS_EA == 0000000000000010000000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_HAS_EA);
	LASSERTF(MDS_OPEN_HAS_OBJS == 0000000000000020000000000UL,
		 "found 0%.22lloUL\n", (long long)MDS_OPEN_HAS_OBJS);
	LASSERTF(MDS_OPEN_NORESTORE == 00000000000100000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_NORESTORE);
	LASSERTF(MDS_OPEN_NEWSTRIPE == 00000000000200000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_NEWSTRIPE);
	LASSERTF(MDS_OPEN_VOLATILE == 00000000000400000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_VOLATILE);
	LASSERTF(MDS_OPEN_LEASE == 00000000001000000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_LEASE);
	LASSERTF(MDS_OPEN_RESYNC == 00000000004000000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_RESYNC);
	LASSERTF(MDS_OPEN_PCC == 00000000010000000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_PCC);
	LASSERTF(MDS_OPEN_DEFAULT_LMV == 00000000040000000000000ULL,
		 "found 0%.22lloULL\n", (long long)MDS_OPEN_DEFAULT_LMV);
	LASSERTF(LUSTRE_SYNC_FL == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_SYNC_FL);
	LASSERTF(LUSTRE_IMMUTABLE_FL == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_IMMUTABLE_FL);
	LASSERTF(LUSTRE_APPEND_FL == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_APPEND_FL);
	LASSERTF(LUSTRE_NODUMP_FL == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_NODUMP_FL);
	LASSERTF(LUSTRE_NOATIME_FL == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_NOATIME_FL);
	LASSERTF(LUSTRE_INDEX_FL == 0x00001000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_INDEX_FL);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(LUSTRE_ORPHAN_FL == 0x00002000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_ORPHAN_FL);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(LUSTRE_DIRSYNC_FL == 0x00010000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_DIRSYNC_FL);
	LASSERTF(LUSTRE_TOPDIR_FL == 0x00020000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_TOPDIR_FL);
	LASSERTF(LUSTRE_INLINE_DATA_FL == 0x10000000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_INLINE_DATA_FL);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(LUSTRE_SET_SYNC_FL == 0x00040000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_SET_SYNC_FL);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(LUSTRE_ENCRYPT_FL == 0x00800000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_ENCRYPT_FL);
	LASSERTF(MDS_INODELOCK_LOOKUP == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_LOOKUP);
	LASSERTF(MDS_INODELOCK_UPDATE == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_UPDATE);
	LASSERTF(MDS_INODELOCK_OPEN == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_OPEN);
	LASSERTF(MDS_INODELOCK_LAYOUT == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_LAYOUT);
	LASSERTF(MDS_INODELOCK_PERM == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_PERM);
	LASSERTF(MDS_INODELOCK_XATTR == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_XATTR);
	LASSERTF(MDS_INODELOCK_DOM == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)MDS_INODELOCK_DOM);

	/* Checks for struct mdt_ioepoch */
	LASSERTF((int)sizeof(struct mdt_ioepoch) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_ioepoch));
	LASSERTF((int)offsetof(struct mdt_ioepoch, mio_open_handle) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_ioepoch, mio_open_handle));
	LASSERTF((int)sizeof(((struct mdt_ioepoch *)0)->mio_open_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_ioepoch *)0)->mio_open_handle));
	LASSERTF((int)offsetof(struct mdt_ioepoch, mio_unused1) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_ioepoch, mio_unused1));
	LASSERTF((int)sizeof(((struct mdt_ioepoch *)0)->mio_unused1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_ioepoch *)0)->mio_unused1));
	LASSERTF((int)offsetof(struct mdt_ioepoch, mio_unused2) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_ioepoch, mio_unused2));
	LASSERTF((int)sizeof(((struct mdt_ioepoch *)0)->mio_unused2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_ioepoch *)0)->mio_unused2));
	LASSERTF((int)offsetof(struct mdt_ioepoch, mio_padding) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_ioepoch, mio_padding));
	LASSERTF((int)sizeof(((struct mdt_ioepoch *)0)->mio_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_ioepoch *)0)->mio_padding));

	/* Checks for struct mdt_rec_setattr */
	LASSERTF((int)sizeof(struct mdt_rec_setattr) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_setattr));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_cap));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_suppgid) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_suppgid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_suppgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_suppgid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_suppgid_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_suppgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_suppgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_suppgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_padding_1) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_padding_1));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_1));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_padding_1_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_padding_1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_1_h));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_fid) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_fid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_fid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_valid) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_valid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_valid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_valid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_uid) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_uid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_uid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_gid) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_gid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_gid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_size) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_size));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_size));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_blocks) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_blocks));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_blocks));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_mtime) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_mtime));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_mtime));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_atime) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_atime));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_atime));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_ctime) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_ctime));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_ctime));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_attr_flags) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_attr_flags));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_attr_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_attr_flags));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_mode) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_mode));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_mode));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_bias) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_bias));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_projid) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_projid));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_projid));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_padding_4) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_4));
	LASSERTF((int)offsetof(struct mdt_rec_setattr, sa_padding_5) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setattr, sa_padding_5));
	LASSERTF((int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_5) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setattr *)0)->sa_padding_5));

	/* Checks for struct mdt_rec_create */
	LASSERTF((int)sizeof(struct mdt_rec_create) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_create));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_cap));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fid1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fid1));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fid1));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_fid2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_fid2));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_fid2));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_open_handle_old) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_open_handle_old));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_open_handle_old) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_open_handle_old));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_time) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_time));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_time));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_rdev) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_rdev));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_rdev) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_rdev));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_ioepoch) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_ioepoch));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_ioepoch) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_ioepoch));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_padding_1) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_padding_1));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_padding_1));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_mode) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_mode));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_mode));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_bias) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_bias));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_flags_l) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_flags_l));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_flags_l) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_flags_l));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_flags_h) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_flags_h));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_flags_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_flags_h));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_umask) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_umask));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_umask) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_umask));
	LASSERTF((int)offsetof(struct mdt_rec_create, cr_padding_4) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_create, cr_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_create *)0)->cr_padding_4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_create *)0)->cr_padding_4));

	/* Checks for struct mdt_rec_link */
	LASSERTF((int)sizeof(struct mdt_rec_link) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_link));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_cap));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fid1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fid1));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fid1));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_fid2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_fid2));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_fid2));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_time) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_time));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_time));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_1) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_1));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_1));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_2) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_2));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_2));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_3) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_3));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_3));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_4) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_4));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_bias) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_bias));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_5) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_5));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_5) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_5));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_6) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_6));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_6) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_6));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_7) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_7));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_7) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_7));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_8) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_8));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_8) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_8));
	LASSERTF((int)offsetof(struct mdt_rec_link, lk_padding_9) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_link, lk_padding_9));
	LASSERTF((int)sizeof(((struct mdt_rec_link *)0)->lk_padding_9) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_link *)0)->lk_padding_9));

	/* Checks for struct mdt_rec_unlink */
	LASSERTF((int)sizeof(struct mdt_rec_unlink) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_unlink));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_cap));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fid1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fid1));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fid1));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_fid2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_fid2));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_fid2));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_time) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_time));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_time));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_2) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_2));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_2));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_3) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_3));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_3));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_4) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_4));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_5) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_5));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_5));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_bias) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_bias));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_mode) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_mode));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_mode));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_6) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_6));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_6) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_6));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_7) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_7));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_7) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_7));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_8) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_8));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_8) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_8));
	LASSERTF((int)offsetof(struct mdt_rec_unlink, ul_padding_9) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_unlink, ul_padding_9));
	LASSERTF((int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_9) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_unlink *)0)->ul_padding_9));

	/* Checks for struct mdt_rec_rename */
	LASSERTF((int)sizeof(struct mdt_rec_rename) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_rename));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_cap));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fid1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fid1));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fid1));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_fid2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_fid2));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_fid2));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_time) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_time));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_time));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_1) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_1));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_1));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_2) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_2));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_2));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_3) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_3));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_3));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_4) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_4));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_bias) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_bias));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_mode) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_mode));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_mode));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_5) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_5));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_5) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_5));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_6) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_6));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_6) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_6));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_7) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_7));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_7) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_7));
	LASSERTF((int)offsetof(struct mdt_rec_rename, rn_padding_8) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_rename, rn_padding_8));
	LASSERTF((int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_8) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_rename *)0)->rn_padding_8));

	/* Checks for struct mdt_rec_setxattr */
	LASSERTF((int)sizeof(struct mdt_rec_setxattr) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_setxattr));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_cap));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_fid) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_fid));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_fid));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_1) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_1));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_1));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_2) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_2));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_2));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_3) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_3));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_3));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_valid) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_valid));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_valid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_valid));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_time) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_time));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_time));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_5) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_5));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_5));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_6) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_6));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_6) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_6));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_7) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_7));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_7) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_7));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_size) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_size));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_size));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_flags) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_flags));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_flags));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_8) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_8));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_8) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_8));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_9) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_9));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_9) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_9));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_10) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_10));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_10) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_10));
	LASSERTF((int)offsetof(struct mdt_rec_setxattr, sx_padding_11) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_setxattr, sx_padding_11));
	LASSERTF((int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_11) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_setxattr *)0)->sx_padding_11));

	/* Checks for struct mdt_rec_resync */
	LASSERTF((int)sizeof(struct mdt_rec_resync) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_resync));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_cap));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_fid) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_fid));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_fid));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding0) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding0));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding0) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding0));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_lease_handle) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_lease_handle));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_lease_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_lease_handle));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding1) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding1));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding1));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding2) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding2));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding2));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding3) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding3));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding3));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding4) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding4));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding4));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_bias) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_bias));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding5) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding5));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding5) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding5));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding6) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding6));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding6) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding6));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding7) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding7));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding7) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding7));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_mirror_id_new) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_mirror_id_new));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_mirror_id_new) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_mirror_id_new));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_mirror_id_old) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_mirror_id_old));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_mirror_id_old) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_mirror_id_old));
	LASSERTF((int)offsetof(struct mdt_rec_resync, rs_padding9) == 134, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_resync, rs_padding9));
	LASSERTF((int)sizeof(((struct mdt_rec_resync *)0)->rs_padding9) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_resync *)0)->rs_padding9));

	/* Checks for struct mdt_rec_reint */
	LASSERTF((int)sizeof(struct mdt_rec_reint) == 136, "found %lld\n",
		 (long long)(int)sizeof(struct mdt_rec_reint));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_opcode) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_opcode));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_opcode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_opcode));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_cap) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_cap));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_cap) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_cap));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fsuid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fsuid));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fsuid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fsuid));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fsuid_h) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fsuid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fsuid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fsuid_h));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fsgid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fsgid));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fsgid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fsgid));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fsgid_h) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fsgid_h));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fsgid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fsgid_h));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_suppgid1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_suppgid1));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid1));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_suppgid1_h) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_suppgid1_h));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid1_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid1_h));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_suppgid2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_suppgid2));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid2));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_suppgid2_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_suppgid2_h));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid2_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_suppgid2_h));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fid1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fid1));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fid1) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fid1));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_fid2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_fid2));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_fid2) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_fid2));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_mtime) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_mtime));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_mtime));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_atime) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_atime));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_atime));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_ctime) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_ctime));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_ctime));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_size) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_size));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_size));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_blocks) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_blocks));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_blocks));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_bias) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_bias));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_bias) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_bias));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_mode) == 116, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_mode));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_mode));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_flags) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_flags));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_flags));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_flags_h) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_flags_h));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_flags_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_flags_h));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_umask) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_umask));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_umask) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_umask));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_mirror_id_old) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_mirror_id_old));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_mirror_id_old) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_mirror_id_old));
	LASSERTF((int)offsetof(struct mdt_rec_reint, rr_padding_4) == 134, "found %lld\n",
		 (long long)(int)offsetof(struct mdt_rec_reint, rr_padding_4));
	LASSERTF((int)sizeof(((struct mdt_rec_reint *)0)->rr_padding_4) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct mdt_rec_reint *)0)->rr_padding_4));

	/* Checks for struct lmv_desc */
	LASSERTF((int)sizeof(struct lmv_desc) == 88, "found %lld\n",
		 (long long)(int)sizeof(struct lmv_desc));
	LASSERTF((int)offsetof(struct lmv_desc, ld_tgt_count) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_tgt_count));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_tgt_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_tgt_count));
	LASSERTF((int)offsetof(struct lmv_desc, ld_active_tgt_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_active_tgt_count));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_active_tgt_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_active_tgt_count));
	LASSERTF((int)offsetof(struct lmv_desc, ld_default_stripe_count) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_default_stripe_count));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_default_stripe_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_default_stripe_count));
	LASSERTF((int)offsetof(struct lmv_desc, ld_pattern) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_pattern));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_pattern) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_pattern));
	LASSERTF((int)offsetof(struct lmv_desc, ld_default_hash_size) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_default_hash_size));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_default_hash_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_default_hash_size));
	LASSERTF((int)offsetof(struct lmv_desc, ld_padding_1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_padding_1));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_padding_1));
	LASSERTF((int)offsetof(struct lmv_desc, ld_padding_2) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_padding_2));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_padding_2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_padding_2));
	LASSERTF((int)offsetof(struct lmv_desc, ld_qos_maxage) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_qos_maxage));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_qos_maxage) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_qos_maxage));
	LASSERTF((int)offsetof(struct lmv_desc, ld_padding_3) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_padding_3));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_padding_3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_padding_3));
	LASSERTF((int)offsetof(struct lmv_desc, ld_padding_4) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_padding_4));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_padding_4) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_padding_4));
	LASSERTF((int)offsetof(struct lmv_desc, ld_uuid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lmv_desc, ld_uuid));
	LASSERTF((int)sizeof(((struct lmv_desc *)0)->ld_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lmv_desc *)0)->ld_uuid));

	/* Checks for struct lov_desc */
	LASSERTF((int)sizeof(struct lov_desc) == 88, "found %lld\n",
		 (long long)(int)sizeof(struct lov_desc));
	LASSERTF((int)offsetof(struct lov_desc, ld_tgt_count) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_tgt_count));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_tgt_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_tgt_count));
	LASSERTF((int)offsetof(struct lov_desc, ld_active_tgt_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_active_tgt_count));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_active_tgt_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_active_tgt_count));
	LASSERTF((int)offsetof(struct lov_desc, ld_default_stripe_count) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_default_stripe_count));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_default_stripe_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_default_stripe_count));
	LASSERTF((int)offsetof(struct lov_desc, ld_pattern) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_pattern));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_pattern) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_pattern));
	LASSERTF((int)offsetof(struct lov_desc, ld_default_stripe_size) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_default_stripe_size));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_default_stripe_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_default_stripe_size));
	LASSERTF((int)offsetof(struct lov_desc, ld_default_stripe_offset) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_default_stripe_offset));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_default_stripe_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_default_stripe_offset));
	LASSERTF((int)offsetof(struct lov_desc, ld_padding_0) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_padding_0));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_padding_0) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_padding_0));
	LASSERTF((int)offsetof(struct lov_desc, ld_qos_maxage) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_qos_maxage));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_qos_maxage) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_qos_maxage));
	LASSERTF((int)offsetof(struct lov_desc, ld_padding_1) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_padding_1));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_padding_1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_padding_1));
	LASSERTF((int)offsetof(struct lov_desc, ld_padding_2) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_padding_2));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_padding_2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_padding_2));
	LASSERTF((int)offsetof(struct lov_desc, ld_uuid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lov_desc, ld_uuid));
	LASSERTF((int)sizeof(((struct lov_desc *)0)->ld_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lov_desc *)0)->ld_uuid));
	BUILD_BUG_ON(LOV_DESC_MAGIC != 0xB0CCDE5C);

	/* Checks for struct ldlm_res_id */
	LASSERTF((int)sizeof(struct ldlm_res_id) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_res_id));
	BUILD_BUG_ON(RES_NAME_SIZE != 4);
	LASSERTF((int)offsetof(struct ldlm_res_id, name[4]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_res_id, name[4]));
	LASSERTF((int)sizeof(((struct ldlm_res_id *)0)->name[4]) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_res_id *)0)->name[4]));

	/* Checks for struct ldlm_extent */
	LASSERTF((int)sizeof(struct ldlm_extent) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_extent));
	LASSERTF((int)offsetof(struct ldlm_extent, start) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_extent, start));
	LASSERTF((int)sizeof(((struct ldlm_extent *)0)->start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_extent *)0)->start));
	LASSERTF((int)offsetof(struct ldlm_extent, end) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_extent, end));
	LASSERTF((int)sizeof(((struct ldlm_extent *)0)->end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_extent *)0)->end));
	LASSERTF((int)offsetof(struct ldlm_extent, gid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_extent, gid));
	LASSERTF((int)sizeof(((struct ldlm_extent *)0)->gid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_extent *)0)->gid));

	/* Checks for struct ldlm_inodebits */
	LASSERTF((int)sizeof(struct ldlm_inodebits) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_inodebits));
	LASSERTF((int)offsetof(struct ldlm_inodebits, bits) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, bits));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->bits) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->bits));
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF((int)offsetof(struct ldlm_inodebits, try_bits) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, try_bits));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->try_bits) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->try_bits));
#else
	LASSERTF((int)offsetof(struct ldlm_inodebits, cancel_bits) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, cancel_bits));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->cancel_bits) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->cancel_bits));
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF((int)offsetof(struct ldlm_inodebits, li_gid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, li_gid));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->li_gid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->li_gid));
	LASSERTF((int)offsetof(struct ldlm_inodebits, li_padding) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, li_padding));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->li_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->li_padding));
	LASSERTF((int)offsetof(struct ldlm_inodebits, li_initiator_id) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_inodebits, li_initiator_id));
	LASSERTF((int)sizeof(((struct ldlm_inodebits *)0)->li_initiator_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_inodebits *)0)->li_initiator_id));

	/* Checks for struct ldlm_flock_wire */
	LASSERTF((int)sizeof(struct ldlm_flock_wire) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_flock_wire));
	LASSERTF((int)offsetof(struct ldlm_flock_wire, lfw_start) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_flock_wire, lfw_start));
	LASSERTF((int)sizeof(((struct ldlm_flock_wire *)0)->lfw_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_flock_wire *)0)->lfw_start));
	LASSERTF((int)offsetof(struct ldlm_flock_wire, lfw_end) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_flock_wire, lfw_end));
	LASSERTF((int)sizeof(((struct ldlm_flock_wire *)0)->lfw_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_flock_wire *)0)->lfw_end));
	LASSERTF((int)offsetof(struct ldlm_flock_wire, lfw_owner) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_flock_wire, lfw_owner));
	LASSERTF((int)sizeof(((struct ldlm_flock_wire *)0)->lfw_owner) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_flock_wire *)0)->lfw_owner));
	LASSERTF((int)offsetof(struct ldlm_flock_wire, lfw_padding) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_flock_wire, lfw_padding));
	LASSERTF((int)sizeof(((struct ldlm_flock_wire *)0)->lfw_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_flock_wire *)0)->lfw_padding));
	LASSERTF((int)offsetof(struct ldlm_flock_wire, lfw_pid) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_flock_wire, lfw_pid));
	LASSERTF((int)sizeof(((struct ldlm_flock_wire *)0)->lfw_pid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_flock_wire *)0)->lfw_pid));

	/* Checks for struct ldlm_intent */
	LASSERTF((int)sizeof(struct ldlm_intent) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_intent));
	LASSERTF((int)offsetof(struct ldlm_intent, opc) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_intent, opc));
	LASSERTF((int)sizeof(((struct ldlm_intent *)0)->opc) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_intent *)0)->opc));
	BUILD_BUG_ON(IT_OPEN != 0x00000001);
	BUILD_BUG_ON(IT_CREAT != 0x00000002);
	BUILD_BUG_ON(IT_READDIR != 0x00000004);
	BUILD_BUG_ON(IT_GETATTR != 0x00000008);
	BUILD_BUG_ON(IT_LOOKUP != 0x00000010);
	BUILD_BUG_ON(IT_GETXATTR != 0x00000080);
	BUILD_BUG_ON(IT_LAYOUT != 0x00000400);
	BUILD_BUG_ON(IT_QUOTA_DQACQ != 0x00000800);
	BUILD_BUG_ON(IT_QUOTA_CONN != 0x00001000);
	BUILD_BUG_ON(IT_GLIMPSE != 0x00004000);
	BUILD_BUG_ON(IT_BRW != 0x00008000);

	/* Checks for struct ldlm_resource_desc */
	LASSERTF((int)sizeof(struct ldlm_resource_desc) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_resource_desc));
	LASSERTF((int)offsetof(struct ldlm_resource_desc, lr_type) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_resource_desc, lr_type));
	LASSERTF((int)sizeof(((struct ldlm_resource_desc *)0)->lr_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_resource_desc *)0)->lr_type));
	LASSERTF((int)offsetof(struct ldlm_resource_desc, lr_pad) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_resource_desc, lr_pad));
	LASSERTF((int)sizeof(((struct ldlm_resource_desc *)0)->lr_pad) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_resource_desc *)0)->lr_pad));
	LASSERTF((int)offsetof(struct ldlm_resource_desc, lr_name) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_resource_desc, lr_name));
	LASSERTF((int)sizeof(((struct ldlm_resource_desc *)0)->lr_name) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_resource_desc *)0)->lr_name));

	/* Checks for struct ldlm_lock_desc */
	LASSERTF((int)sizeof(struct ldlm_lock_desc) == 80, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_lock_desc));
	LASSERTF((int)offsetof(struct ldlm_lock_desc, l_resource) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_lock_desc, l_resource));
	LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_resource) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_resource));
	LASSERTF((int)offsetof(struct ldlm_lock_desc, l_req_mode) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_lock_desc, l_req_mode));
	LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_req_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_req_mode));
	LASSERTF((int)offsetof(struct ldlm_lock_desc, l_granted_mode) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_lock_desc, l_granted_mode));
	LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_granted_mode) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_granted_mode));
	LASSERTF((int)offsetof(struct ldlm_lock_desc, l_policy_data) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_lock_desc, l_policy_data));
	LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_policy_data) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_policy_data));

	/* Checks for struct ldlm_request */
	LASSERTF((int)sizeof(struct ldlm_request) == 88, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_request));
	LASSERTF((int)offsetof(struct ldlm_request, lock_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_request, lock_flags));
	LASSERTF((int)sizeof(((struct ldlm_request *)0)->lock_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_request *)0)->lock_flags));
	LASSERTF((int)offsetof(struct ldlm_request, lock_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_request, lock_count));
	LASSERTF((int)sizeof(((struct ldlm_request *)0)->lock_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_request *)0)->lock_count));
	LASSERTF((int)offsetof(struct ldlm_request, lock_desc) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_request, lock_desc));
	LASSERTF((int)sizeof(((struct ldlm_request *)0)->lock_desc) == 80, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_request *)0)->lock_desc));
	LASSERTF((int)offsetof(struct ldlm_request, lock_handle) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_request, lock_handle));
	LASSERTF((int)sizeof(*((struct ldlm_request *)0)->lock_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(*((struct ldlm_request *)0)->lock_handle));
	BUILD_BUG_ON(offsetof(struct ldlm_request, lock_handle) != sizeof(struct ldlm_request));

	/* Checks for struct ldlm_reply */
	LASSERTF((int)sizeof(struct ldlm_reply) == 112, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_reply));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_flags));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_flags));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_padding) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_padding));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_padding));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_desc) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_desc));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_desc) == 80, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_desc));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_handle) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_handle));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_handle) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_handle));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_policy_res1) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_policy_res1));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_policy_res1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_policy_res1));
	LASSERTF((int)offsetof(struct ldlm_reply, lock_policy_res2) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_reply, lock_policy_res2));
	LASSERTF((int)sizeof(((struct ldlm_reply *)0)->lock_policy_res2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_reply *)0)->lock_policy_res2));

	/* Checks for struct ost_lvb_v1 */
	LASSERTF((int)sizeof(struct ost_lvb_v1) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct ost_lvb_v1));
	LASSERTF((int)offsetof(struct ost_lvb_v1, lvb_size) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb_v1, lvb_size));
	LASSERTF((int)sizeof(((struct ost_lvb_v1 *)0)->lvb_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb_v1 *)0)->lvb_size));
	LASSERTF((int)offsetof(struct ost_lvb_v1, lvb_mtime) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb_v1, lvb_mtime));
	LASSERTF((int)sizeof(((struct ost_lvb_v1 *)0)->lvb_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb_v1 *)0)->lvb_mtime));
	LASSERTF((int)offsetof(struct ost_lvb_v1, lvb_atime) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb_v1, lvb_atime));
	LASSERTF((int)sizeof(((struct ost_lvb_v1 *)0)->lvb_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb_v1 *)0)->lvb_atime));
	LASSERTF((int)offsetof(struct ost_lvb_v1, lvb_ctime) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb_v1, lvb_ctime));
	LASSERTF((int)sizeof(((struct ost_lvb_v1 *)0)->lvb_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb_v1 *)0)->lvb_ctime));
	LASSERTF((int)offsetof(struct ost_lvb_v1, lvb_blocks) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb_v1, lvb_blocks));
	LASSERTF((int)sizeof(((struct ost_lvb_v1 *)0)->lvb_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb_v1 *)0)->lvb_blocks));

	/* Checks for struct ost_lvb */
	LASSERTF((int)sizeof(struct ost_lvb) == 56, "found %lld\n",
		 (long long)(int)sizeof(struct ost_lvb));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_size) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_size));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_size));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_mtime) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_mtime));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_mtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_mtime));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_atime) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_atime));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_atime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_atime));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_ctime) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_ctime));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_ctime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_ctime));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_blocks) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_blocks));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_blocks) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_blocks));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_mtime_ns) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_mtime_ns));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_mtime_ns) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_mtime_ns));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_atime_ns) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_atime_ns));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_atime_ns) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_atime_ns));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_ctime_ns) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_ctime_ns));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_ctime_ns) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_ctime_ns));
	LASSERTF((int)offsetof(struct ost_lvb, lvb_padding) == 52, "found %lld\n",
		 (long long)(int)offsetof(struct ost_lvb, lvb_padding));
	LASSERTF((int)sizeof(((struct ost_lvb *)0)->lvb_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ost_lvb *)0)->lvb_padding));

	/* Checks for struct lquota_lvb */
	LASSERTF((int)sizeof(struct lquota_lvb) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct lquota_lvb));
	LASSERTF((int)offsetof(struct lquota_lvb, lvb_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_lvb, lvb_flags));
	LASSERTF((int)sizeof(((struct lquota_lvb *)0)->lvb_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_lvb *)0)->lvb_flags));
	LASSERTF((int)offsetof(struct lquota_lvb, lvb_id_may_rel) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_lvb, lvb_id_may_rel));
	LASSERTF((int)sizeof(((struct lquota_lvb *)0)->lvb_id_may_rel) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_lvb *)0)->lvb_id_may_rel));
	LASSERTF((int)offsetof(struct lquota_lvb, lvb_id_rel) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_lvb, lvb_id_rel));
	LASSERTF((int)sizeof(((struct lquota_lvb *)0)->lvb_id_rel) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_lvb *)0)->lvb_id_rel));
	LASSERTF((int)offsetof(struct lquota_lvb, lvb_id_qunit) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_lvb, lvb_id_qunit));
	LASSERTF((int)sizeof(((struct lquota_lvb *)0)->lvb_id_qunit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_lvb *)0)->lvb_id_qunit));
	LASSERTF((int)offsetof(struct lquota_lvb, lvb_pad1) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lquota_lvb, lvb_pad1));
	LASSERTF((int)sizeof(((struct lquota_lvb *)0)->lvb_pad1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lquota_lvb *)0)->lvb_pad1));
	LASSERTF(LQUOTA_FL_EDQUOT == 1, "found %lld\n",
		 (long long)LQUOTA_FL_EDQUOT);

	/* Checks for struct ldlm_gl_lquota_desc */
	LASSERTF((int)sizeof(struct ldlm_gl_lquota_desc) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_gl_lquota_desc));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_id) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_id));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_id) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_id));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_flags));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_flags));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_ver) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_ver));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_ver));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_hardlimit) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_hardlimit));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_hardlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_hardlimit));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_softlimit) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_softlimit));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_softlimit) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_softlimit));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_time) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_time));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_time));
	LASSERTF((int)offsetof(struct ldlm_gl_lquota_desc, gl_pad2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_lquota_desc, gl_pad2));
	LASSERTF((int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_pad2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_lquota_desc *)0)->gl_pad2));

#ifdef HAVE_SERVER_SUPPORT

	/* Checks for struct ldlm_gl_barrier_desc */
	LASSERTF((int)sizeof(struct ldlm_gl_barrier_desc) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct ldlm_gl_barrier_desc));
	LASSERTF((int)offsetof(struct ldlm_gl_barrier_desc, lgbd_status) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_barrier_desc, lgbd_status));
	LASSERTF((int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_status) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_status));
	LASSERTF((int)offsetof(struct ldlm_gl_barrier_desc, lgbd_timeout) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_barrier_desc, lgbd_timeout));
	LASSERTF((int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_timeout) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_timeout));
	LASSERTF((int)offsetof(struct ldlm_gl_barrier_desc, lgbd_padding) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ldlm_gl_barrier_desc, lgbd_padding));
	LASSERTF((int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_padding) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ldlm_gl_barrier_desc *)0)->lgbd_padding));

	/* Checks for struct barrier_lvb */
	LASSERTF((int)sizeof(struct barrier_lvb) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct barrier_lvb));
	LASSERTF((int)offsetof(struct barrier_lvb, lvb_status) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct barrier_lvb, lvb_status));
	LASSERTF((int)sizeof(((struct barrier_lvb *)0)->lvb_status) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct barrier_lvb *)0)->lvb_status));
	LASSERTF((int)offsetof(struct barrier_lvb, lvb_index) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct barrier_lvb, lvb_index));
	LASSERTF((int)sizeof(((struct barrier_lvb *)0)->lvb_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct barrier_lvb *)0)->lvb_index));
	LASSERTF((int)offsetof(struct barrier_lvb, lvb_padding) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct barrier_lvb, lvb_padding));
	LASSERTF((int)sizeof(((struct barrier_lvb *)0)->lvb_padding) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct barrier_lvb *)0)->lvb_padding));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct mgs_send_param */
	LASSERTF((int)sizeof(struct mgs_send_param) == 1024, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_send_param));
	BUILD_BUG_ON(MGS_PARAM_MAXLEN != 1024);
	LASSERTF((int)offsetof(struct mgs_send_param, mgs_param[1024]) == 1024, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_send_param, mgs_param[1024]));
	LASSERTF((int)sizeof(((struct mgs_send_param *)0)->mgs_param[1024]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_send_param *)0)->mgs_param[1024]));

	/* Checks for struct cfg_marker */
	LASSERTF((int)sizeof(struct cfg_marker) == 160, "found %lld\n",
		 (long long)(int)sizeof(struct cfg_marker));
	LASSERTF((int)offsetof(struct cfg_marker, cm_step) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_step));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_step) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_step));
	LASSERTF((int)offsetof(struct cfg_marker, cm_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_flags));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_flags));
	LASSERTF((int)offsetof(struct cfg_marker, cm_vers) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_vers));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_vers) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_vers));
	LASSERTF((int)offsetof(struct cfg_marker, cm_padding) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_padding));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_padding));
	LASSERTF((int)offsetof(struct cfg_marker, cm_createtime) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_createtime));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_createtime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_createtime));
	LASSERTF((int)offsetof(struct cfg_marker, cm_canceltime) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_canceltime));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_canceltime) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_canceltime));
	LASSERTF((int)offsetof(struct cfg_marker, cm_tgtname) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_tgtname));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_tgtname) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_tgtname));
	LASSERTF((int)offsetof(struct cfg_marker, cm_comment) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct cfg_marker, cm_comment));
	LASSERTF((int)sizeof(((struct cfg_marker *)0)->cm_comment) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct cfg_marker *)0)->cm_comment));

	/* Checks for struct llog_logid */
	LASSERTF((int)sizeof(struct llog_logid) == 20, "found %lld\n",
		 (long long)(int)sizeof(struct llog_logid));
	LASSERTF((int)offsetof(struct llog_logid, lgl_oi) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid, lgl_oi));
	LASSERTF((int)sizeof(((struct llog_logid *)0)->lgl_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid *)0)->lgl_oi));
	LASSERTF((int)offsetof(struct llog_logid, lgl_ogen) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid, lgl_ogen));
	LASSERTF((int)sizeof(((struct llog_logid *)0)->lgl_ogen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid *)0)->lgl_ogen));
	BUILD_BUG_ON(OST_SZ_REC != 0x10600f00);
	BUILD_BUG_ON(MDS_UNLINK_REC != 0x10612404);
	BUILD_BUG_ON(MDS_UNLINK64_REC != 0x10692404);
	BUILD_BUG_ON(MDS_SETATTR64_REC != 0x10692401);
	BUILD_BUG_ON(OBD_CFG_REC != 0x10620000);
	BUILD_BUG_ON(LLOG_GEN_REC != 0x10640000);
	BUILD_BUG_ON(CHANGELOG_REC != 0x10660000);
	BUILD_BUG_ON(CHANGELOG_USER_REC != 0x10670000);
	BUILD_BUG_ON(CHANGELOG_USER_REC2 != 0x10670002);
	BUILD_BUG_ON(HSM_AGENT_REC != 0x10680000);
	BUILD_BUG_ON(UPDATE_REC != 0x106a0000);
	BUILD_BUG_ON(LLOG_HDR_MAGIC != 0x10645539);
	BUILD_BUG_ON(LLOG_LOGID_MAGIC != 0x1064553b);

	/* Checks for struct llog_catid */
	LASSERTF((int)sizeof(struct llog_catid) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct llog_catid));
	LASSERTF((int)offsetof(struct llog_catid, lci_logid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_catid, lci_logid));
	LASSERTF((int)sizeof(((struct llog_catid *)0)->lci_logid) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_catid *)0)->lci_logid));
	LASSERTF((int)offsetof(struct llog_catid, lci_padding1) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct llog_catid, lci_padding1));
	LASSERTF((int)sizeof(((struct llog_catid *)0)->lci_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_catid *)0)->lci_padding1));
	LASSERTF((int)offsetof(struct llog_catid, lci_padding2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct llog_catid, lci_padding2));
	LASSERTF((int)sizeof(((struct llog_catid *)0)->lci_padding2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_catid *)0)->lci_padding2));
	LASSERTF((int)offsetof(struct llog_catid, lci_padding3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct llog_catid, lci_padding3));
	LASSERTF((int)sizeof(((struct llog_catid *)0)->lci_padding3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_catid *)0)->lci_padding3));

	/* Checks for struct llog_rec_hdr */
	LASSERTF((int)sizeof(struct llog_rec_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct llog_rec_hdr));
	LASSERTF((int)offsetof(struct llog_rec_hdr, lrh_len) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_hdr, lrh_len));
	LASSERTF((int)sizeof(((struct llog_rec_hdr *)0)->lrh_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_hdr *)0)->lrh_len));
	LASSERTF((int)offsetof(struct llog_rec_hdr, lrh_index) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_hdr, lrh_index));
	LASSERTF((int)sizeof(((struct llog_rec_hdr *)0)->lrh_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_hdr *)0)->lrh_index));
	LASSERTF((int)offsetof(struct llog_rec_hdr, lrh_type) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_hdr, lrh_type));
	LASSERTF((int)sizeof(((struct llog_rec_hdr *)0)->lrh_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_hdr *)0)->lrh_type));
	LASSERTF((int)offsetof(struct llog_rec_hdr, lrh_id) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_hdr, lrh_id));
	LASSERTF((int)sizeof(((struct llog_rec_hdr *)0)->lrh_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_hdr *)0)->lrh_id));

	/* Checks for struct llog_rec_tail */
	LASSERTF((int)sizeof(struct llog_rec_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct llog_rec_tail));
	LASSERTF((int)offsetof(struct llog_rec_tail, lrt_len) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_tail, lrt_len));
	LASSERTF((int)sizeof(((struct llog_rec_tail *)0)->lrt_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_tail *)0)->lrt_len));
	LASSERTF((int)offsetof(struct llog_rec_tail, lrt_index) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct llog_rec_tail, lrt_index));
	LASSERTF((int)sizeof(((struct llog_rec_tail *)0)->lrt_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_rec_tail *)0)->lrt_index));

	/* Checks for struct llog_logid_rec */
	LASSERTF((int)sizeof(struct llog_logid_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct llog_logid_rec));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_hdr));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_hdr));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_id) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_id));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_id) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_id));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_padding1) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_padding1));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_padding1));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_padding2) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_padding2));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_padding2));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_padding3) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_padding3));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_padding3));
	LASSERTF((int)offsetof(struct llog_logid_rec, lid_tail) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_logid_rec, lid_tail));
	LASSERTF((int)sizeof(((struct llog_logid_rec *)0)->lid_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_logid_rec *)0)->lid_tail));

	/* Checks for struct llog_unlink_rec */
	LASSERTF((int)sizeof(struct llog_unlink_rec) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct llog_unlink_rec));
	LASSERTF((int)offsetof(struct llog_unlink_rec, lur_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink_rec, lur_hdr));
	LASSERTF((int)sizeof(((struct llog_unlink_rec *)0)->lur_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink_rec *)0)->lur_hdr));
	LASSERTF((int)offsetof(struct llog_unlink_rec, lur_oid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink_rec, lur_oid));
	LASSERTF((int)sizeof(((struct llog_unlink_rec *)0)->lur_oid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink_rec *)0)->lur_oid));
	LASSERTF((int)offsetof(struct llog_unlink_rec, lur_oseq) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink_rec, lur_oseq));
	LASSERTF((int)sizeof(((struct llog_unlink_rec *)0)->lur_oseq) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink_rec *)0)->lur_oseq));
	LASSERTF((int)offsetof(struct llog_unlink_rec, lur_count) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink_rec, lur_count));
	LASSERTF((int)sizeof(((struct llog_unlink_rec *)0)->lur_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink_rec *)0)->lur_count));
	LASSERTF((int)offsetof(struct llog_unlink_rec, lur_tail) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink_rec, lur_tail));
	LASSERTF((int)sizeof(((struct llog_unlink_rec *)0)->lur_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink_rec *)0)->lur_tail));
	/* Checks for struct llog_unlink64_rec */
	LASSERTF((int)sizeof(struct llog_unlink64_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct llog_unlink64_rec));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_hdr));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_hdr));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_fid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_fid));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_fid));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_count) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_count));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_count));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_tail) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_tail));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_tail));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_padding1) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_padding1));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding1));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_padding2) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_padding2));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding2));
	LASSERTF((int)offsetof(struct llog_unlink64_rec, lur_padding3) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct llog_unlink64_rec, lur_padding3));
	LASSERTF((int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_unlink64_rec *)0)->lur_padding3));

#ifdef HAVE_SERVER_SUPPORT
	/* Checks for struct llog_setattr64_rec */
	LASSERTF((int)sizeof(struct llog_setattr64_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct llog_setattr64_rec));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_hdr));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_hdr));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_oi) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_oi));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_oi) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_oi));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_uid) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_uid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_uid_h) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_uid_h));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid_h));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_gid) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_gid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_gid_h) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_gid_h));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_valid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_valid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_tail) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec, lsr_tail));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_tail));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_hdr) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_hdr), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_hdr), (int)offsetof(struct llog_setattr64_rec_v2, lsr_hdr));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_hdr) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_hdr), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_hdr), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_hdr));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_oi) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_oi), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_oi), (int)offsetof(struct llog_setattr64_rec_v2, lsr_oi));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_oi) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_oi), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_oi), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_oi));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_uid) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_uid), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_uid), (int)offsetof(struct llog_setattr64_rec_v2, lsr_uid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_uid), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_uid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_uid_h) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_uid_h), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_uid_h), (int)offsetof(struct llog_setattr64_rec_v2, lsr_uid_h));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid_h) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_uid_h), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_uid_h), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_uid_h));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_gid) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_gid), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_gid), (int)offsetof(struct llog_setattr64_rec_v2, lsr_gid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_gid), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_gid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_gid_h) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_gid_h), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_gid_h), (int)offsetof(struct llog_setattr64_rec_v2, lsr_gid_h));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_gid_h), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_gid_h));
	LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_valid) == (int)offsetof(struct llog_setattr64_rec_v2, lsr_valid), "%d != %d\n",
		 (int)offsetof(struct llog_setattr64_rec, lsr_valid), (int)offsetof(struct llog_setattr64_rec_v2, lsr_valid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid) == (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_valid), "%d != %d\n",
		 (int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid), (int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_valid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec_v2, lsr_projid) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec_v2, lsr_projid));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_projid));
	LASSERTF((int)offsetof(struct llog_setattr64_rec_v2, lsr_layout_version) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec_v2, lsr_layout_version));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_layout_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_layout_version));
	LASSERTF((int)offsetof(struct llog_setattr64_rec_v2, lsr_padding2) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec_v2, lsr_padding2));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_padding2));
	LASSERTF((int)offsetof(struct llog_setattr64_rec_v2, lsr_padding3) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec_v2, lsr_padding3));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_padding3));
	LASSERTF((int)offsetof(struct llog_setattr64_rec_v2, lsr_tail) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct llog_setattr64_rec_v2, lsr_tail));
	LASSERTF((int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_setattr64_rec_v2 *)0)->lsr_tail));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct llog_size_change_rec */
	LASSERTF((int)sizeof(struct llog_size_change_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct llog_size_change_rec));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_hdr));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_hdr));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_fid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_fid));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_fid));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_ioepoch) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_ioepoch));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_ioepoch) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_ioepoch));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_padding1) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_padding1));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding1));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_padding2) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_padding2));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding2));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_padding3) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_padding3));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_padding3));
	LASSERTF((int)offsetof(struct llog_size_change_rec, lsc_tail) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_size_change_rec, lsc_tail));
	LASSERTF((int)sizeof(((struct llog_size_change_rec *)0)->lsc_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_size_change_rec *)0)->lsc_tail));

	/* Checks for struct changelog_rec */
	LASSERTF((int)sizeof(struct changelog_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct changelog_rec));
	LASSERTF((int)offsetof(struct changelog_rec, cr_namelen) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_namelen));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_namelen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_namelen));
	LASSERTF((int)offsetof(struct changelog_rec, cr_flags) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_flags));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_flags));
	LASSERTF((int)offsetof(struct changelog_rec, cr_type) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_type));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_type));
	LASSERTF((int)offsetof(struct changelog_rec, cr_index) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_index));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_index) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_index));
	LASSERTF((int)offsetof(struct changelog_rec, cr_prev) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_prev));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_prev) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_prev));
	LASSERTF((int)offsetof(struct changelog_rec, cr_time) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_time));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_time));
	LASSERTF((int)offsetof(struct changelog_rec, cr_tfid) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_tfid));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_tfid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_tfid));
	LASSERTF((int)offsetof(struct changelog_rec, cr_pfid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_rec, cr_pfid));
	LASSERTF((int)sizeof(((struct changelog_rec *)0)->cr_pfid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_rec *)0)->cr_pfid));

	/* Checks for struct changelog_ext_rename */
	LASSERTF((int)sizeof(struct changelog_ext_rename) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct changelog_ext_rename));
	LASSERTF((int)offsetof(struct changelog_ext_rename, cr_sfid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_ext_rename, cr_sfid));
	LASSERTF((int)sizeof(((struct changelog_ext_rename *)0)->cr_sfid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_ext_rename *)0)->cr_sfid));
	LASSERTF((int)offsetof(struct changelog_ext_rename, cr_spfid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_ext_rename, cr_spfid));
	LASSERTF((int)sizeof(((struct changelog_ext_rename *)0)->cr_spfid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_ext_rename *)0)->cr_spfid));

#ifdef HAVE_SERVER_SUPPORT
	/* Checks for struct changelog_ext_jobid */
	LASSERTF((int)sizeof(struct changelog_ext_jobid) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct changelog_ext_jobid));
	BUILD_BUG_ON(LUSTRE_JOBID_SIZE != 32);
	LASSERTF((int)offsetof(struct changelog_ext_jobid, cr_jobid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_ext_jobid, cr_jobid));
	LASSERTF((int)sizeof(((struct changelog_ext_jobid *)0)->cr_jobid) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_ext_jobid *)0)->cr_jobid));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct changelog_setinfo */
	LASSERTF((int)sizeof(struct changelog_setinfo) == 12, "found %lld\n",
		 (long long)(int)sizeof(struct changelog_setinfo));
	LASSERTF((int)offsetof(struct changelog_setinfo, cs_recno) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_setinfo, cs_recno));
	LASSERTF((int)sizeof(((struct changelog_setinfo *)0)->cs_recno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_setinfo *)0)->cs_recno));
	LASSERTF((int)offsetof(struct changelog_setinfo, cs_id) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct changelog_setinfo, cs_id));
	LASSERTF((int)sizeof(((struct changelog_setinfo *)0)->cs_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct changelog_setinfo *)0)->cs_id));

	/* Checks for struct llog_changelog_rec */
	LASSERTF((int)sizeof(struct llog_changelog_rec) == 88, "found %lld\n",
		 (long long)(int)sizeof(struct llog_changelog_rec));
	LASSERTF((int)offsetof(struct llog_changelog_rec, cr_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_rec, cr_hdr));
	LASSERTF((int)sizeof(((struct llog_changelog_rec *)0)->cr_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_rec *)0)->cr_hdr));
	LASSERTF((int)offsetof(struct llog_changelog_rec, cr) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_rec, cr));
	LASSERTF((int)sizeof(((struct llog_changelog_rec *)0)->cr) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_rec *)0)->cr));
	LASSERTF((int)offsetof(struct llog_changelog_rec, cr_do_not_use) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_rec, cr_do_not_use));
	LASSERTF((int)sizeof(((struct llog_changelog_rec *)0)->cr_do_not_use) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_rec *)0)->cr_do_not_use));
#ifdef HAVE_SERVER_SUPPORT

	/* Checks for struct llog_changelog_user_rec */
	LASSERTF((int)sizeof(struct llog_changelog_user_rec) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct llog_changelog_user_rec));
	LASSERTF((int)offsetof(struct llog_changelog_user_rec, cur_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_user_rec, cur_hdr));
	LASSERTF((int)sizeof(((struct llog_changelog_user_rec *)0)->cur_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_user_rec *)0)->cur_hdr));
	LASSERTF((int)offsetof(struct llog_changelog_user_rec, cur_id) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_user_rec, cur_id));
	LASSERTF((int)sizeof(((struct llog_changelog_user_rec *)0)->cur_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_user_rec *)0)->cur_id));
	LASSERTF((int)offsetof(struct llog_changelog_user_rec, cur_time) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_user_rec, cur_time));
	LASSERTF((int)sizeof(((struct llog_changelog_user_rec *)0)->cur_time) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_user_rec *)0)->cur_time));
	LASSERTF((int)offsetof(struct llog_changelog_user_rec, cur_endrec) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_user_rec, cur_endrec));
	LASSERTF((int)sizeof(((struct llog_changelog_user_rec *)0)->cur_endrec) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_user_rec *)0)->cur_endrec));
	LASSERTF((int)offsetof(struct llog_changelog_user_rec, cur_tail) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_changelog_user_rec, cur_tail));
	LASSERTF((int)sizeof(((struct llog_changelog_user_rec *)0)->cur_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_changelog_user_rec *)0)->cur_tail));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct rsi_downcall_data */
	LASSERTF((int)sizeof(struct rsi_downcall_data) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct rsi_downcall_data));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_magic));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_magic));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_err) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_err));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_err) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_err));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_unused) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_unused));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_unused) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_unused));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_maj_stat) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_maj_stat));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_maj_stat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_maj_stat));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_min_stat) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_min_stat));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_min_stat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_min_stat));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_len) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_len));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_len));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_offset) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_offset));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_offset));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_hash) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_hash));
	LASSERTF((int)sizeof(((struct rsi_downcall_data *)0)->sid_hash) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct rsi_downcall_data *)0)->sid_hash));
	LASSERTF((int)offsetof(struct rsi_downcall_data, sid_val) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct rsi_downcall_data, sid_val));
	LASSERTF((int)sizeof(*((struct rsi_downcall_data *)0)->sid_val) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct rsi_downcall_data *)0)->sid_val));

	/* Checks for struct rsc_downcall_data */
	LASSERTF((int)sizeof(struct rsc_downcall_data) == 72, "found %lld\n",
		 (long long)(int)sizeof(struct rsc_downcall_data));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_magic));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_magic));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_err) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_err));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_err) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_err));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_flags) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_flags));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_flags));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_mapped_uid) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_mapped_uid));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_mapped_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_mapped_uid));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_uid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_uid));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_uid));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_gid) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_gid));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_gid));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_mechname) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_mechname));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_mechname) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_mechname));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_nmname) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_nmname));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_nmname) == 24, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_nmname));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_offset) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_offset));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_offset));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_len) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_len));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_len));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_padding) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_padding));
	LASSERTF((int)sizeof(((struct rsc_downcall_data *)0)->scd_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rsc_downcall_data *)0)->scd_padding));
	LASSERTF((int)offsetof(struct rsc_downcall_data, scd_val) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct rsc_downcall_data, scd_val));
	LASSERTF((int)sizeof(*((struct rsc_downcall_data *)0)->scd_val) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct rsc_downcall_data *)0)->scd_val));
	LASSERTF(RSC_DATA_FLAG_REMOTE == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)RSC_DATA_FLAG_REMOTE);
	LASSERTF(RSC_DATA_FLAG_ROOT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)RSC_DATA_FLAG_ROOT);
	LASSERTF(RSC_DATA_FLAG_MDS == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)RSC_DATA_FLAG_MDS);
	LASSERTF(RSC_DATA_FLAG_OSS == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)RSC_DATA_FLAG_OSS);

	/* Checks for struct llog_gen */
	LASSERTF((int)sizeof(struct llog_gen) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct llog_gen));
	LASSERTF((int)offsetof(struct llog_gen, mnt_cnt) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_gen, mnt_cnt));
	LASSERTF((int)sizeof(((struct llog_gen *)0)->mnt_cnt) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_gen *)0)->mnt_cnt));
	LASSERTF((int)offsetof(struct llog_gen, conn_cnt) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct llog_gen, conn_cnt));
	LASSERTF((int)sizeof(((struct llog_gen *)0)->conn_cnt) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_gen *)0)->conn_cnt));

	/* Checks for struct llog_gen_rec */
	LASSERTF((int)sizeof(struct llog_gen_rec) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct llog_gen_rec));
	LASSERTF((int)offsetof(struct llog_gen_rec, lgr_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_gen_rec, lgr_hdr));
	LASSERTF((int)sizeof(((struct llog_gen_rec *)0)->lgr_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_gen_rec *)0)->lgr_hdr));
	LASSERTF((int)offsetof(struct llog_gen_rec, lgr_gen) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_gen_rec, lgr_gen));
	LASSERTF((int)sizeof(((struct llog_gen_rec *)0)->lgr_gen) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_gen_rec *)0)->lgr_gen));
	LASSERTF((int)offsetof(struct llog_gen_rec, lgr_tail) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct llog_gen_rec, lgr_tail));
	LASSERTF((int)sizeof(((struct llog_gen_rec *)0)->lgr_tail) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_gen_rec *)0)->lgr_tail));

	/* Checks for struct llog_log_hdr */
	LASSERTF((int)sizeof(struct llog_log_hdr) == 8192, "found %lld\n",
		 (long long)(int)sizeof(struct llog_log_hdr));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_hdr));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_hdr));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_timestamp) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_timestamp));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_timestamp) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_timestamp));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_count) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_count));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_count));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_bitmap_offset) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_bitmap_offset));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_bitmap_offset) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_bitmap_offset));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_size) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_size));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_size));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_flags) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_flags));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_flags));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_cat_idx) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_cat_idx));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_cat_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_cat_idx));
	LASSERTF((int)offsetof(struct llog_log_hdr, llh_tgtuuid) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct llog_log_hdr, llh_tgtuuid));
	LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_tgtuuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_tgtuuid));
	BUILD_BUG_ON(LLOG_F_ZAP_WHEN_EMPTY != 0x00000001);
	BUILD_BUG_ON(LLOG_F_IS_CAT != 0x00000002);
	BUILD_BUG_ON(LLOG_F_IS_PLAIN != 0x00000004);
	BUILD_BUG_ON(LLOG_F_EXT_JOBID != 0x00000008);
	BUILD_BUG_ON(LLOG_F_IS_FIXSIZE != 0x00000010);
	BUILD_BUG_ON(LLOG_F_EXT_EXTRA_FLAGS != 0x00000020);
	BUILD_BUG_ON(LLOG_F_EXT_X_UIDGID != 0x00000040);
	BUILD_BUG_ON(LLOG_F_EXT_X_NID != 0x00000080);
	BUILD_BUG_ON(LLOG_F_EXT_X_OMODE != 0x00000100);
	BUILD_BUG_ON(LLOG_F_EXT_X_XATTR != 0x00000200);
	BUILD_BUG_ON(LLOG_F_EXT_X_NID_BE != 0x00001000);

	/* Checks for struct llogd_body */
	LASSERTF((int)sizeof(struct llogd_body) == 48, "found %lld\n",
		 (long long)(int)sizeof(struct llogd_body));
	LASSERTF((int)offsetof(struct llogd_body, lgd_logid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_logid));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_logid) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_logid));
	LASSERTF((int)offsetof(struct llogd_body, lgd_ctxt_idx) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_ctxt_idx));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_ctxt_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_ctxt_idx));
	LASSERTF((int)offsetof(struct llogd_body, lgd_llh_flags) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_llh_flags));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_llh_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_llh_flags));
	LASSERTF((int)offsetof(struct llogd_body, lgd_index) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_index));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_index));
	LASSERTF((int)offsetof(struct llogd_body, lgd_saved_index) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_saved_index));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_saved_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_saved_index));
	LASSERTF((int)offsetof(struct llogd_body, lgd_len) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_len));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_len));
	LASSERTF((int)offsetof(struct llogd_body, lgd_cur_offset) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_body, lgd_cur_offset));
	LASSERTF((int)sizeof(((struct llogd_body *)0)->lgd_cur_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_body *)0)->lgd_cur_offset));
	BUILD_BUG_ON(LLOG_ORIGIN_HANDLE_CREATE != 501);
	BUILD_BUG_ON(LLOG_ORIGIN_HANDLE_NEXT_BLOCK != 502);
	BUILD_BUG_ON(LLOG_ORIGIN_HANDLE_READ_HEADER != 503);
	BUILD_BUG_ON(LLOG_ORIGIN_HANDLE_PREV_BLOCK != 508);
	BUILD_BUG_ON(LLOG_FIRST_OPC != 501);
	BUILD_BUG_ON(LLOG_LAST_OPC != 510);
	BUILD_BUG_ON(LLOG_CONFIG_ORIG_CTXT != 0);
	BUILD_BUG_ON(LLOG_CONFIG_REPL_CTXT != 1);
	BUILD_BUG_ON(LLOG_MDS_OST_ORIG_CTXT != 2);
	BUILD_BUG_ON(LLOG_MDS_OST_REPL_CTXT != 3);
	BUILD_BUG_ON(LLOG_SIZE_ORIG_CTXT != 4);
	BUILD_BUG_ON(LLOG_SIZE_REPL_CTXT != 5);
	BUILD_BUG_ON(LLOG_TEST_ORIG_CTXT != 8);
	BUILD_BUG_ON(LLOG_TEST_REPL_CTXT != 9);
	BUILD_BUG_ON(LLOG_CHANGELOG_ORIG_CTXT != 12);
	BUILD_BUG_ON(LLOG_CHANGELOG_REPL_CTXT != 13);
	BUILD_BUG_ON(LLOG_CHANGELOG_USER_ORIG_CTXT != 14);
	BUILD_BUG_ON(LLOG_AGENT_ORIG_CTXT != 15);
	BUILD_BUG_ON(LLOG_UPDATELOG_ORIG_CTXT != 16);
	BUILD_BUG_ON(LLOG_UPDATELOG_REPL_CTXT != 17);
	BUILD_BUG_ON(LLOG_MAX_CTXTS != 18);

	/* Checks for struct llogd_conn_body */
	LASSERTF((int)sizeof(struct llogd_conn_body) == 40, "found %lld\n",
		 (long long)(int)sizeof(struct llogd_conn_body));
	LASSERTF((int)offsetof(struct llogd_conn_body, lgdc_gen) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_conn_body, lgdc_gen));
	LASSERTF((int)sizeof(((struct llogd_conn_body *)0)->lgdc_gen) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_conn_body *)0)->lgdc_gen));
	LASSERTF((int)offsetof(struct llogd_conn_body, lgdc_logid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_conn_body, lgdc_logid));
	LASSERTF((int)sizeof(((struct llogd_conn_body *)0)->lgdc_logid) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_conn_body *)0)->lgdc_logid));
	LASSERTF((int)offsetof(struct llogd_conn_body, lgdc_ctxt_idx) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct llogd_conn_body, lgdc_ctxt_idx));
	LASSERTF((int)sizeof(((struct llogd_conn_body *)0)->lgdc_ctxt_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct llogd_conn_body *)0)->lgdc_ctxt_idx));

	/* Checks for struct ll_fiemap_info_key */
	LASSERTF((int)sizeof(struct ll_fiemap_info_key) == 248, "found %lld\n",
		 (long long)(int)sizeof(struct ll_fiemap_info_key));
	LASSERTF((int)offsetof(struct ll_fiemap_info_key, lfik_name[8]) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fiemap_info_key, lfik_name[8]));
	LASSERTF((int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_name[8]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_name[8]));
	LASSERTF((int)offsetof(struct ll_fiemap_info_key, lfik_oa) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fiemap_info_key, lfik_oa));
	LASSERTF((int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_oa) == 208, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_oa));
	LASSERTF((int)offsetof(struct ll_fiemap_info_key, lfik_fiemap) == 216, "found %lld\n",
		 (long long)(int)offsetof(struct ll_fiemap_info_key, lfik_fiemap));
	LASSERTF((int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_fiemap) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct ll_fiemap_info_key *)0)->lfik_fiemap));
#ifdef HAVE_SERVER_SUPPORT

	/* Checks for struct quota_body */
	LASSERTF((int)sizeof(struct quota_body) == 112, "found %lld\n",
		 (long long)(int)sizeof(struct quota_body));
	LASSERTF((int)offsetof(struct quota_body, qb_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_fid));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_fid));
	LASSERTF((int)offsetof(struct quota_body, qb_id) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_id));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_id) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_id));
	LASSERTF((int)offsetof(struct quota_body, qb_flags) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_flags));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_flags));
	LASSERTF((int)offsetof(struct quota_body, qb_padding) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_padding));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_padding));
	LASSERTF((int)offsetof(struct quota_body, qb_count) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_count));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_count) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_count));
	LASSERTF((int)offsetof(struct quota_body, qb_usage) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_usage));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_usage) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_usage));
	LASSERTF((int)offsetof(struct quota_body, qb_slv_ver) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_slv_ver));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_slv_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_slv_ver));
	LASSERTF((int)offsetof(struct quota_body, qb_lockh) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_lockh));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_lockh) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_lockh));
	LASSERTF((int)offsetof(struct quota_body, qb_glb_lockh) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_glb_lockh));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_glb_lockh) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_glb_lockh));
	LASSERTF((int)offsetof(struct quota_body, qb_glb_ver) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_glb_ver));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_glb_ver) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_glb_ver));
	LASSERTF((int)offsetof(struct quota_body, qb_padding1[3]) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct quota_body, qb_padding1[3]));
	LASSERTF((int)sizeof(((struct quota_body *)0)->qb_padding1[3]) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct quota_body *)0)->qb_padding1[3]));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct mgs_target_info */
	LASSERTF((int)sizeof(struct mgs_target_info) == 4544, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_target_info));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_lustre_ver) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_lustre_ver));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_lustre_ver) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_lustre_ver));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_stripe_index) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_stripe_index));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_stripe_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_stripe_index));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_config_ver) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_config_ver));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_config_ver) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_config_ver));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_flags));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_flags));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_nid_count) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_nid_count));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_nid_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_nid_count));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_instance) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_instance));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_instance) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_instance));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_fsname) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_fsname));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_fsname) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_fsname));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_svname) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_svname));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_svname) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_svname));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_uuid) == 152, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_uuid));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_uuid));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_nids) == 192, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_nids));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_nids) == 256, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_nids));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_params) == 448, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_params));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_params) == 4096, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_params));
	LASSERTF((int)offsetof(struct mgs_target_info, mti_nidlist[0]) == 4544, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_info, mti_nidlist[0]));
	LASSERTF((int)sizeof(((struct mgs_target_info *)0)->mti_nidlist[0]) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_info *)0)->mti_nidlist[0]));

	/* Checks for struct mgs_target_nidlist */
	LASSERTF((int)sizeof(struct mgs_target_nidlist) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_target_nidlist));
	LASSERTF((int)offsetof(struct mgs_target_nidlist, mtn_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_nidlist, mtn_flags));
	LASSERTF((int)sizeof(((struct mgs_target_nidlist *)0)->mtn_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_nidlist *)0)->mtn_flags));
	LASSERTF((int)offsetof(struct mgs_target_nidlist, mtn_nids) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_nidlist, mtn_nids));
	LASSERTF((int)sizeof(((struct mgs_target_nidlist *)0)->mtn_nids) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_nidlist *)0)->mtn_nids));
	LASSERTF((int)offsetof(struct mgs_target_nidlist, mtn_inline_list[0]) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_target_nidlist, mtn_inline_list[0]));
	LASSERTF((int)sizeof(((struct mgs_target_nidlist *)0)->mtn_inline_list[0]) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_target_nidlist *)0)->mtn_inline_list[0]));
	BUILD_BUG_ON(NIDLIST_APPEND != 0x00000001);
	BUILD_BUG_ON(NIDLIST_IN_BULK != 0x00000002);
	BUILD_BUG_ON(NIDLIST_COMPRESSED != 0x00000004);

	/* Checks for struct mgs_nidtbl_entry */
	LASSERTF((int)sizeof(struct mgs_nidtbl_entry) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_nidtbl_entry));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_version));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_version));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_instance) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_instance));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_instance) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_instance));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_index) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_index));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_index));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_length) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_length));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_length) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_length));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_type) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_type));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_type) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_type));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_nid_type) == 21, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_nid_type));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_type) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_type));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_nid_size) == 22, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_nid_size));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_size) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_size));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, mne_nid_count) == 23, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, mne_nid_count));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_count) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->mne_nid_count));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, u.nids[0]) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, u.nids[0]));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->u.nids[0]) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->u.nids[0]));
	LASSERTF((int)offsetof(struct mgs_nidtbl_entry, u.nidlist[0]) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_nidtbl_entry, u.nidlist[0]));
	LASSERTF((int)sizeof(((struct mgs_nidtbl_entry *)0)->u.nidlist[0]) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_nidtbl_entry *)0)->u.nidlist[0]));

	/* Checks for struct mgs_config_body */
	LASSERTF((int)sizeof(struct mgs_config_body) == 80, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_config_body));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_name) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_name));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_name) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_name));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_offset) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_offset));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_offset));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_type) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_type));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_type) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_type));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_nm_cur_pass) == 74, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_nm_cur_pass));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_nm_cur_pass) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_nm_cur_pass));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_rec_nid_size) == 74, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_rec_nid_size));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_rec_nid_size) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_rec_nid_size));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_bits) == 75, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_bits));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_bits) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_bits));
	LASSERTF((int)offsetof(struct mgs_config_body, mcb_units) == 76, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_body, mcb_units));
	LASSERTF((int)sizeof(((struct mgs_config_body *)0)->mcb_units) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_body *)0)->mcb_units));
	BUILD_BUG_ON(MGS_CFG_T_CONFIG != 0);
	BUILD_BUG_ON(MGS_CFG_T_SPTLRPC != 1);
	BUILD_BUG_ON(MGS_CFG_T_RECOVER != 2);
	BUILD_BUG_ON(MGS_CFG_T_PARAMS != 3);
#ifdef HAVE_SERVER_SUPPORT
	BUILD_BUG_ON(MGS_CFG_T_NODEMAP != 4);
	BUILD_BUG_ON(MGS_CFG_T_BARRIER != 5);
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct mgs_config_res */
	LASSERTF((int)sizeof(struct mgs_config_res) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct mgs_config_res));
	LASSERTF((int)offsetof(struct mgs_config_res, mcr_offset) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_res, mcr_offset));
	LASSERTF((int)sizeof(((struct mgs_config_res *)0)->mcr_offset) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_res *)0)->mcr_offset));
	LASSERTF((int)offsetof(struct mgs_config_res, mcr_size) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct mgs_config_res, mcr_size));
	LASSERTF((int)sizeof(((struct mgs_config_res *)0)->mcr_size) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mgs_config_res *)0)->mcr_size));

	/* Checks for struct getinfo_fid2path */
	LASSERTF((int)sizeof(struct getinfo_fid2path) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct getinfo_fid2path));
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_fid));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_fid));
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_recno) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_recno));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_recno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_recno));
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_linkno) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_linkno));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_linkno) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_linkno));
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_pathlen) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_pathlen));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_pathlen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_pathlen));
#ifdef HAVE_FID2PATH_ANON_UNIONS
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_path[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_path[0]));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_path[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_path[0]));
#else
	LASSERTF((int)offsetof(struct getinfo_fid2path, gf_u.gf_path[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct getinfo_fid2path, gf_u.gf_path[0]));
	LASSERTF((int)sizeof(((struct getinfo_fid2path *)0)->gf_u.gf_path[0]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct getinfo_fid2path *)0)->gf_u.gf_path[0]));
#endif /* HAVE_FID2PATH_ANON_UNIONS */

	/* Checks for struct fiemap */
	LASSERTF((int)sizeof(struct fiemap) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct fiemap));
	LASSERTF((int)offsetof(struct fiemap, fm_start) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_start));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_start));
	LASSERTF((int)offsetof(struct fiemap, fm_length) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_length));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_length) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_length));
	LASSERTF((int)offsetof(struct fiemap, fm_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_flags));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_flags));
	LASSERTF((int)offsetof(struct fiemap, fm_mapped_extents) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_mapped_extents));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_mapped_extents) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_mapped_extents));
	LASSERTF((int)offsetof(struct fiemap, fm_extent_count) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_extent_count));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_extent_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_extent_count));
	LASSERTF((int)offsetof(struct fiemap, fm_reserved) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_reserved));
	LASSERTF((int)sizeof(((struct fiemap *)0)->fm_reserved) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap *)0)->fm_reserved));
	LASSERTF((int)offsetof(struct fiemap, fm_extents) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap, fm_extents));
	LASSERTF((int)sizeof(*((struct fiemap *)0)->fm_extents) == 56, "found %lld\n",
		 (long long)(int)sizeof(*((struct fiemap *)0)->fm_extents));
	BUILD_BUG_ON(offsetof(struct fiemap, fm_extents) != sizeof(struct fiemap));
	BUILD_BUG_ON(FIEMAP_FLAG_SYNC != 0x00000001);
	BUILD_BUG_ON(FIEMAP_FLAG_XATTR != 0x00000002);
	BUILD_BUG_ON(FIEMAP_FLAG_DEVICE_ORDER != 0x40000000);

	/* Checks for struct fiemap_extent */
	LASSERTF((int)sizeof(struct fiemap_extent) == 56, "found %lld\n",
		 (long long)(int)sizeof(struct fiemap_extent));
	LASSERTF((int)offsetof(struct fiemap_extent, fe_logical) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap_extent, fe_logical));
	LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_logical) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_logical));
	LASSERTF((int)offsetof(struct fiemap_extent, fe_physical) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap_extent, fe_physical));
	LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_physical) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_physical));
	LASSERTF((int)offsetof(struct fiemap_extent, fe_length) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap_extent, fe_length));
	LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_length) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_length));
	LASSERTF((int)offsetof(struct fiemap_extent, fe_flags) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap_extent, fe_flags));
	LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_flags));
	LASSERTF((int)offsetof(struct fiemap_extent, fe_reserved[0]) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct fiemap_extent, fe_reserved[0]));
	LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_reserved[0]) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_reserved[0]));
	BUILD_BUG_ON(FIEMAP_EXTENT_LAST != 0x00000001);
	BUILD_BUG_ON(FIEMAP_EXTENT_UNKNOWN != 0x00000002);
	BUILD_BUG_ON(FIEMAP_EXTENT_DELALLOC != 0x00000004);
	BUILD_BUG_ON(FIEMAP_EXTENT_ENCODED != 0x00000008);
	BUILD_BUG_ON(FIEMAP_EXTENT_DATA_ENCRYPTED != 0x00000080);
	BUILD_BUG_ON(FIEMAP_EXTENT_NOT_ALIGNED != 0x00000100);
	BUILD_BUG_ON(FIEMAP_EXTENT_DATA_INLINE != 0x00000200);
	BUILD_BUG_ON(FIEMAP_EXTENT_DATA_TAIL != 0x00000400);
	BUILD_BUG_ON(FIEMAP_EXTENT_UNWRITTEN != 0x00000800);
	BUILD_BUG_ON(FIEMAP_EXTENT_MERGED != 0x00001000);
	BUILD_BUG_ON(FIEMAP_EXTENT_SHARED != 0x00002000);
	BUILD_BUG_ON(FIEMAP_EXTENT_NET != 0x80000000);

#ifdef CONFIG_FS_POSIX_ACL
	/* Checks for type posix_acl_xattr_entry */
	LASSERTF((int)sizeof(posix_acl_xattr_entry) == 8, "found %lld\n",
		 (long long)(int)sizeof(posix_acl_xattr_entry));
	LASSERTF((int)offsetof(posix_acl_xattr_entry, e_tag) == 0, "found %lld\n",
		 (long long)(int)offsetof(posix_acl_xattr_entry, e_tag));
	LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_tag) == 2, "found %lld\n",
		 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_tag));
	LASSERTF((int)offsetof(posix_acl_xattr_entry, e_perm) == 2, "found %lld\n",
		 (long long)(int)offsetof(posix_acl_xattr_entry, e_perm));
	LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_perm) == 2, "found %lld\n",
		 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_perm));
	LASSERTF((int)offsetof(posix_acl_xattr_entry, e_id) == 4, "found %lld\n",
		 (long long)(int)offsetof(posix_acl_xattr_entry, e_id));
	LASSERTF((int)sizeof(((posix_acl_xattr_entry *)0)->e_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((posix_acl_xattr_entry *)0)->e_id));
#endif /* CONFIG_FS_POSIX_ACL */

#ifdef CONFIG_FS_POSIX_ACL
	/* Checks for type posix_acl_xattr_header */
	LASSERTF((int)sizeof(posix_acl_xattr_header) == 4, "found %lld\n",
		 (long long)(int)sizeof(posix_acl_xattr_header));
	LASSERTF((int)offsetof(posix_acl_xattr_header, a_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(posix_acl_xattr_header, a_version));
	LASSERTF((int)sizeof(((posix_acl_xattr_header *)0)->a_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((posix_acl_xattr_header *)0)->a_version));
#ifndef HAVE_STRUCT_POSIX_ACL_XATTR
	LASSERTF((int)offsetof(posix_acl_xattr_header, a_entries) == 4, "found %lld\n",
		 (long long)(int)offsetof(posix_acl_xattr_header, a_entries));
	LASSERTF((int)sizeof(((posix_acl_xattr_header *)0)->a_entries) == 0, "found %lld\n",
		 (long long)(int)sizeof(((posix_acl_xattr_header *)0)->a_entries));
#endif /* HAVE_STRUCT_POSIX_ACL_XATTR */
#endif /* CONFIG_FS_POSIX_ACL */

	/* Checks for struct link_ea_header */
	LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct link_ea_header));
	LASSERTF((int)offsetof(struct link_ea_header, leh_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_header, leh_magic));
	LASSERTF((int)sizeof(((struct link_ea_header *)0)->leh_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_header *)0)->leh_magic));
	LASSERTF((int)offsetof(struct link_ea_header, leh_reccount) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_header, leh_reccount));
	LASSERTF((int)sizeof(((struct link_ea_header *)0)->leh_reccount) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_header *)0)->leh_reccount));
	LASSERTF((int)offsetof(struct link_ea_header, leh_len) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_header, leh_len));
	LASSERTF((int)sizeof(((struct link_ea_header *)0)->leh_len) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_header *)0)->leh_len));
	LASSERTF((int)offsetof(struct link_ea_header, leh_overflow_time) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_header, leh_overflow_time));
	LASSERTF((int)sizeof(((struct link_ea_header *)0)->leh_overflow_time) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_header *)0)->leh_overflow_time));
	LASSERTF((int)offsetof(struct link_ea_header, leh_padding) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_header, leh_padding));
	LASSERTF((int)sizeof(((struct link_ea_header *)0)->leh_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_header *)0)->leh_padding));
	BUILD_BUG_ON(LINK_EA_MAGIC != 0x11EAF1DFUL);

	/* Checks for struct link_ea_entry */
	LASSERTF((int)sizeof(struct link_ea_entry) == 18, "found %lld\n",
		 (long long)(int)sizeof(struct link_ea_entry));
	LASSERTF((int)offsetof(struct link_ea_entry, lee_reclen) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_entry, lee_reclen));
	LASSERTF((int)sizeof(((struct link_ea_entry *)0)->lee_reclen) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_entry *)0)->lee_reclen));
	LASSERTF((int)offsetof(struct link_ea_entry, lee_parent_fid) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_entry, lee_parent_fid));
	LASSERTF((int)sizeof(((struct link_ea_entry *)0)->lee_parent_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct link_ea_entry *)0)->lee_parent_fid));
	LASSERTF((int)offsetof(struct link_ea_entry, lee_name) == 18, "found %lld\n",
		 (long long)(int)offsetof(struct link_ea_entry, lee_name));
	LASSERTF((int)sizeof(*((struct link_ea_entry *)0)->lee_name) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct link_ea_entry *)0)->lee_name));

	/* Checks for struct layout_intent */
	LASSERTF((int)sizeof(struct layout_intent) == 24, "found %lld\n",
		 (long long)(int)sizeof(struct layout_intent));
	LASSERTF((int)offsetof(struct layout_intent, lai_opc) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct layout_intent, lai_opc));
	LASSERTF((int)sizeof(((struct layout_intent *)0)->lai_opc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct layout_intent *)0)->lai_opc));
	LASSERTF((int)offsetof(struct layout_intent, lai_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct layout_intent, lai_flags));
	LASSERTF((int)sizeof(((struct layout_intent *)0)->lai_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct layout_intent *)0)->lai_flags));
	LASSERTF((int)offsetof(struct layout_intent, lai_extent) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct layout_intent, lai_extent));
	LASSERTF((int)sizeof(((struct layout_intent *)0)->lai_extent) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct layout_intent *)0)->lai_extent));
	LASSERTF(LAYOUT_INTENT_ACCESS == 0, "found %lld\n",
		 (long long)LAYOUT_INTENT_ACCESS);
	LASSERTF(LAYOUT_INTENT_READ == 1, "found %lld\n",
		 (long long)LAYOUT_INTENT_READ);
	LASSERTF(LAYOUT_INTENT_WRITE == 2, "found %lld\n",
		 (long long)LAYOUT_INTENT_WRITE);
	LASSERTF(LAYOUT_INTENT_GLIMPSE == 3, "found %lld\n",
		 (long long)LAYOUT_INTENT_GLIMPSE);
	LASSERTF(LAYOUT_INTENT_TRUNC == 4, "found %lld\n",
		 (long long)LAYOUT_INTENT_TRUNC);
	LASSERTF(LAYOUT_INTENT_RELEASE == 5, "found %lld\n",
		 (long long)LAYOUT_INTENT_RELEASE);
	LASSERTF(LAYOUT_INTENT_RESTORE == 6, "found %lld\n",
		 (long long)LAYOUT_INTENT_RESTORE);
	LASSERTF(LAYOUT_INTENT_PCCRO_SET == 7, "found %lld\n",
		 (long long)LAYOUT_INTENT_PCCRO_SET);
	LASSERTF(LAYOUT_INTENT_PCCRO_CLEAR == 8, "found %lld\n",
		 (long long)LAYOUT_INTENT_PCCRO_CLEAR);
	LASSERTF(LAYOUT_INTENT_CHANGE == 9, "found %lld\n",
		 (long long)LAYOUT_INTENT_CHANGE);
	LASSERTF(LAIF_INCOMPRESSIBLE == 1, "found %lld\n",
		 (long long)LAIF_INCOMPRESSIBLE);

	/* Checks for struct hsm_action_item */
	LASSERTF((int)sizeof(struct hsm_action_item) == 72, "found %lld\n",
		 (long long)(int)sizeof(struct hsm_action_item));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_len) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_len));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_len));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_action) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_action));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_action) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_action));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_fid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_fid));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_fid));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_dfid) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_dfid));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_dfid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_dfid));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_extent) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_extent));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_extent) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_extent));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_cookie) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_cookie));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_cookie) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_cookie));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_gid) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_gid));
	LASSERTF((int)sizeof(((struct hsm_action_item *)0)->hai_gid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_item *)0)->hai_gid));
	LASSERTF((int)offsetof(struct hsm_action_item, hai_data) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_item, hai_data));
	LASSERTF((int)sizeof(*((struct hsm_action_item *)0)->hai_data) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct hsm_action_item *)0)->hai_data));

	/* Checks for struct hsm_action_list */
	LASSERTF((int)sizeof(struct hsm_action_list) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct hsm_action_list));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_version));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->hal_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->hal_version));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_count));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->hal_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->hal_count));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_compound_id) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_compound_id));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->hal_compound_id) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->hal_compound_id));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_flags));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->hal_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->hal_flags));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_archive_id) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_archive_id));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->hal_archive_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->hal_archive_id));
	LASSERTF((int)offsetof(struct hsm_action_list, padding1) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, padding1));
	LASSERTF((int)sizeof(((struct hsm_action_list *)0)->padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_action_list *)0)->padding1));
	LASSERTF((int)offsetof(struct hsm_action_list, hal_fsname) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_action_list, hal_fsname));
	LASSERTF((int)sizeof(*((struct hsm_action_list *)0)->hal_fsname) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct hsm_action_list *)0)->hal_fsname));
	BUILD_BUG_ON(offsetof(struct hsm_action_list, hal_fsname) != sizeof(struct hsm_action_list));

	/* Checks for struct hsm_progress */
	LASSERTF((int)sizeof(struct hsm_progress) == 48, "found %lld\n",
		 (long long)(int)sizeof(struct hsm_progress));
	LASSERTF((int)offsetof(struct hsm_progress, hp_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, hp_fid));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->hp_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->hp_fid));
	LASSERTF((int)offsetof(struct hsm_progress, hp_cookie) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, hp_cookie));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->hp_cookie) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->hp_cookie));
	LASSERTF((int)offsetof(struct hsm_progress, hp_extent) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, hp_extent));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->hp_extent) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->hp_extent));
	LASSERTF((int)offsetof(struct hsm_progress, hp_flags) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, hp_flags));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->hp_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->hp_flags));
	LASSERTF((int)offsetof(struct hsm_progress, hp_errval) == 42, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, hp_errval));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->hp_errval) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->hp_errval));
	LASSERTF((int)offsetof(struct hsm_progress, padding) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress, padding));
	LASSERTF((int)sizeof(((struct hsm_progress *)0)->padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress *)0)->padding));
	LASSERTF(HP_FLAG_COMPLETED == 0x01, "found 0x%.8x\n",
		HP_FLAG_COMPLETED);
	LASSERTF(HP_FLAG_RETRY == 0x02, "found 0x%.8x\n",
		HP_FLAG_RETRY);

	LASSERTF((int)offsetof(struct hsm_copy, hc_data_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_copy, hc_data_version));
	LASSERTF((int)sizeof(((struct hsm_copy *)0)->hc_data_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_copy *)0)->hc_data_version));
	LASSERTF((int)offsetof(struct hsm_copy, hc_flags) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_copy, hc_flags));
	LASSERTF((int)sizeof(((struct hsm_copy *)0)->hc_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_copy *)0)->hc_flags));
	LASSERTF((int)offsetof(struct hsm_copy, hc_errval) == 10, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_copy, hc_errval));
	LASSERTF((int)sizeof(((struct hsm_copy *)0)->hc_errval) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_copy *)0)->hc_errval));
	LASSERTF((int)offsetof(struct hsm_copy, padding) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_copy, padding));
	LASSERTF((int)sizeof(((struct hsm_copy *)0)->padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_copy *)0)->padding));
	LASSERTF((int)offsetof(struct hsm_copy, hc_hai) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_copy, hc_hai));
	LASSERTF((int)sizeof(((struct hsm_copy *)0)->hc_hai) == 72, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_copy *)0)->hc_hai));

	/* Checks for struct hsm_progress_kernel */
	LASSERTF((int)sizeof(struct hsm_progress_kernel) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct hsm_progress_kernel));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_fid));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_fid));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_cookie) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_cookie));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_cookie) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_cookie));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_extent) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_extent));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_extent) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_extent));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_flags) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_flags));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_flags));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_errval) == 42, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_errval));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_errval) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_errval));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_padding1) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_padding1));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_padding1));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_data_version) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_data_version));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_data_version) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_data_version));
	LASSERTF((int)offsetof(struct hsm_progress_kernel, hpk_padding2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct hsm_progress_kernel, hpk_padding2));
	LASSERTF((int)sizeof(((struct hsm_progress_kernel *)0)->hpk_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct hsm_progress_kernel *)0)->hpk_padding2));

	/* 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 lustre_swap_layouts */
	LASSERTF((int)sizeof(struct lustre_swap_layouts) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_swap_layouts));
	LASSERTF((int)offsetof(struct lustre_swap_layouts, sl_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_swap_layouts, sl_flags));
	LASSERTF((int)sizeof(((struct lustre_swap_layouts *)0)->sl_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_swap_layouts *)0)->sl_flags));
	LASSERTF((int)offsetof(struct lustre_swap_layouts, sl_fd) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_swap_layouts, sl_fd));
	LASSERTF((int)sizeof(((struct lustre_swap_layouts *)0)->sl_fd) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_swap_layouts *)0)->sl_fd));
	LASSERTF((int)offsetof(struct lustre_swap_layouts, sl_gid) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_swap_layouts, sl_gid));
	LASSERTF((int)sizeof(((struct lustre_swap_layouts *)0)->sl_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_swap_layouts *)0)->sl_gid));
	LASSERTF((int)offsetof(struct lustre_swap_layouts, sl_dv1) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_swap_layouts, sl_dv1));
	LASSERTF((int)sizeof(((struct lustre_swap_layouts *)0)->sl_dv1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_swap_layouts *)0)->sl_dv1));
	LASSERTF((int)offsetof(struct lustre_swap_layouts, sl_dv2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_swap_layouts, sl_dv2));
	LASSERTF((int)sizeof(((struct lustre_swap_layouts *)0)->sl_dv2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_swap_layouts *)0)->sl_dv2));

	/* Checks for struct mdc_swap_layouts */
	LASSERTF((int)sizeof(struct mdc_swap_layouts) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct mdc_swap_layouts));
	LASSERTF((int)offsetof(struct mdc_swap_layouts, msl_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct mdc_swap_layouts, msl_flags));
	LASSERTF((int)sizeof(((struct mdc_swap_layouts *)0)->msl_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct mdc_swap_layouts *)0)->msl_flags));

	/* Checks for mdc_swap_layouts::msl_flags */
	LASSERTF(SWAP_LAYOUTS_CHECK_DV1 == 1, "found %lld\n",
		 (long long)SWAP_LAYOUTS_CHECK_DV1);
	LASSERTF(SWAP_LAYOUTS_CHECK_DV2 == 2, "found %lld\n",
		 (long long)SWAP_LAYOUTS_CHECK_DV2);
	LASSERTF(SWAP_LAYOUTS_KEEP_MTIME == 4, "found %lld\n",
		 (long long)SWAP_LAYOUTS_KEEP_MTIME);
	LASSERTF(SWAP_LAYOUTS_KEEP_ATIME == 8, "found %lld\n",
		 (long long)SWAP_LAYOUTS_KEEP_ATIME);
	LASSERTF(SWAP_LAYOUTS_CLOSE == 16, "found %lld\n",
		 (long long)SWAP_LAYOUTS_CLOSE);

	/* 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));
	BUILD_BUG_ON(HSS_SETMASK != 1);
	BUILD_BUG_ON(HSS_CLEARMASK != 2);
	BUILD_BUG_ON(HSS_ARCHIVE_ID != 4);

	/* 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));
	BUILD_BUG_ON(HPS_NONE != 0);
	BUILD_BUG_ON(HPS_WAITING != 1);
	BUILD_BUG_ON(HPS_RUNNING != 2);
	BUILD_BUG_ON(HPS_DONE != 3);
	BUILD_BUG_ON(HUA_NONE != 1);
	BUILD_BUG_ON(HUA_ARCHIVE != 10);
	BUILD_BUG_ON(HUA_RESTORE != 11);
	BUILD_BUG_ON(HUA_RELEASE != 12);
	BUILD_BUG_ON(HUA_REMOVE != 13);
	BUILD_BUG_ON(HUA_CANCEL != 14);

	/* 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);
	LASSERTF(HSM_REQ_BLOCKING == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)HSM_REQ_BLOCKING);

	/* 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) == 32, "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));

#ifndef HAVE_NATIVE_LINUX_CLIENT

	/* Checks for struct netobj_s */
	LASSERTF((int)sizeof(struct netobj_s) == 4, "found %lld\n",
		 (long long)(int)sizeof(struct netobj_s));
	LASSERTF((int)offsetof(struct netobj_s, len) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct netobj_s, len));
	LASSERTF((int)sizeof(((struct netobj_s *)0)->len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct netobj_s *)0)->len));
	LASSERTF((int)offsetof(struct netobj_s, data) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct netobj_s, data));
	LASSERTF((int)sizeof(*((struct netobj_s *)0)->data) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct netobj_s *)0)->data));

	/* Checks for struct rawobj_s */
	LASSERTF((int)sizeof(struct rawobj_s) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct rawobj_s));
	LASSERTF((int)offsetof(struct rawobj_s, len) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct rawobj_s, len));
	LASSERTF((int)sizeof(((struct rawobj_s *)0)->len) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct rawobj_s *)0)->len));
	LASSERTF((int)offsetof(struct rawobj_s, data) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct rawobj_s, data));
	LASSERTF((int)sizeof(((struct rawobj_s *)0)->data) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct rawobj_s *)0)->data));

	/* Checks for struct gss_header */
	LASSERTF((int)sizeof(struct gss_header) == 36, "found %lld\n",
		 (long long)(int)sizeof(struct gss_header));
	LASSERTF((int)offsetof(struct gss_header, gh_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_version));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_version) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_version));
	LASSERTF((int)offsetof(struct gss_header, gh_sp) == 1, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_sp));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_sp) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_sp));
	LASSERTF((int)offsetof(struct gss_header, gh_pad0) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_pad0));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_pad0) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_pad0));
	LASSERTF((int)offsetof(struct gss_header, gh_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_flags));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_flags));
	LASSERTF((int)offsetof(struct gss_header, gh_proc) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_proc));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_proc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_proc));
	LASSERTF((int)offsetof(struct gss_header, gh_seq) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_seq));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_seq) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_seq));
	LASSERTF((int)offsetof(struct gss_header, gh_svc) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_svc));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_svc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_svc));
	LASSERTF((int)offsetof(struct gss_header, gh_pad1) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_pad1));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_pad1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_pad1));
	LASSERTF((int)offsetof(struct gss_header, gh_pad2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_pad2));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_pad2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_pad2));
	LASSERTF((int)offsetof(struct gss_header, gh_pad3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_pad3));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_pad3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_pad3));
	LASSERTF((int)offsetof(struct gss_header, gh_handle) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct gss_header, gh_handle));
	LASSERTF((int)sizeof(((struct gss_header *)0)->gh_handle) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_header *)0)->gh_handle));

	/* Checks for struct gss_rep_header */
	LASSERTF((int)sizeof(struct gss_rep_header) == 36, "found %lld\n",
		 (long long)(int)sizeof(struct gss_rep_header));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_version));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_version) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_version));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_sp) == 1, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_sp));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_sp) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_sp));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_pad0) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_pad0));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_pad0) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_pad0));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_flags));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_flags));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_proc) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_proc));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_proc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_proc));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_major) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_major));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_major) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_major));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_minor) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_minor));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_minor) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_minor));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_seqwin) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_seqwin));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_seqwin) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_seqwin));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_pad2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_pad2));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_pad2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_pad2));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_pad3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_pad3));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_pad3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_pad3));
	LASSERTF((int)offsetof(struct gss_rep_header, gh_handle) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct gss_rep_header, gh_handle));
	LASSERTF((int)sizeof(((struct gss_rep_header *)0)->gh_handle) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_rep_header *)0)->gh_handle));

	/* Checks for struct gss_err_header */
	LASSERTF((int)sizeof(struct gss_err_header) == 36, "found %lld\n",
		 (long long)(int)sizeof(struct gss_err_header));
	LASSERTF((int)offsetof(struct gss_err_header, gh_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_version));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_version) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_version));
	LASSERTF((int)offsetof(struct gss_err_header, gh_sp) == 1, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_sp));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_sp) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_sp));
	LASSERTF((int)offsetof(struct gss_err_header, gh_pad0) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_pad0));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_pad0) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_pad0));
	LASSERTF((int)offsetof(struct gss_err_header, gh_flags) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_flags));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_flags));
	LASSERTF((int)offsetof(struct gss_err_header, gh_proc) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_proc));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_proc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_proc));
	LASSERTF((int)offsetof(struct gss_err_header, gh_major) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_major));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_major) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_major));
	LASSERTF((int)offsetof(struct gss_err_header, gh_minor) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_minor));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_minor) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_minor));
	LASSERTF((int)offsetof(struct gss_err_header, gh_pad1) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_pad1));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_pad1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_pad1));
	LASSERTF((int)offsetof(struct gss_err_header, gh_pad2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_pad2));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_pad2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_pad2));
	LASSERTF((int)offsetof(struct gss_err_header, gh_pad3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_pad3));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_pad3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_pad3));
	LASSERTF((int)offsetof(struct gss_err_header, gh_handle) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct gss_err_header, gh_handle));
	LASSERTF((int)sizeof(((struct gss_err_header *)0)->gh_handle) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_err_header *)0)->gh_handle));

	/* Checks for struct gss_wire_ctx */
	LASSERTF((int)sizeof(struct gss_wire_ctx) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct gss_wire_ctx));
	LASSERTF((int)offsetof(struct gss_wire_ctx, gw_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct gss_wire_ctx, gw_flags));
	LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_flags));
	LASSERTF((int)offsetof(struct gss_wire_ctx, gw_proc) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct gss_wire_ctx, gw_proc));
	LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_proc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_proc));
	LASSERTF((int)offsetof(struct gss_wire_ctx, gw_seq) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct gss_wire_ctx, gw_seq));
	LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_seq) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_seq));
	LASSERTF((int)offsetof(struct gss_wire_ctx, gw_svc) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct gss_wire_ctx, gw_svc));
	LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_svc) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_svc));
	LASSERTF((int)offsetof(struct gss_wire_ctx, gw_handle) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct gss_wire_ctx, gw_handle));
	LASSERTF((int)sizeof(((struct gss_wire_ctx *)0)->gw_handle) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct gss_wire_ctx *)0)->gw_handle));
#endif /* HAVE_NATIVE_LINUX_CLIENT */

#ifdef HAVE_SERVER_SUPPORT

	/* 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) == 1, "found %lld\n",
		 (long long)(int)sizeof(*((struct object_update_param *)0)->oup_buf));
	BUILD_BUG_ON(offsetof(struct object_update_param, oup_buf) != sizeof(struct object_update_param));

	/* 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_result_size) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct object_update, ou_result_size));
	LASSERTF((int)sizeof(((struct object_update *)0)->ou_result_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct object_update *)0)->ou_result_size));
	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) == 8, "found %lld\n",
		 (long long)(int)sizeof(*((struct object_update *)0)->ou_params));
	BUILD_BUG_ON(offsetof(struct object_update, ou_params) != sizeof(struct object_update));
	BUILD_BUG_ON(UPDATE_FL_OST != 0x00000001);
	BUILD_BUG_ON(UPDATE_FL_SYNC != 0x00000002);
	BUILD_BUG_ON(UPDATE_FL_COMMITTED != 0x00000004);
	BUILD_BUG_ON(UPDATE_FL_NOLOG != 0x00000008);

	/* 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) == 40, "found %lld\n",
		 (long long)(int)sizeof(*((struct object_update_request *)0)->ourq_updates));
	BUILD_BUG_ON(offsetof(struct object_update_request, ourq_updates) != sizeof(struct object_update_request));
	BUILD_BUG_ON(UPDATE_REQUEST_MAGIC != 0xBDDE0002);

	/* 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) == 4, "found %lld\n",
		 (long long)(int)sizeof(*((struct object_update_result *)0)->our_data));
	BUILD_BUG_ON(offsetof(struct object_update_result, our_data) != sizeof(struct object_update_result));

	/* 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) == 2, "found %lld\n",
		 (long long)(int)sizeof(*((struct object_update_reply *)0)->ourp_lens));
	BUILD_BUG_ON(offsetof(struct object_update_reply, ourp_lens) != sizeof(struct object_update_reply));
	BUILD_BUG_ON(UPDATE_REPLY_MAGIC != 0x00BD0002);

	/* Checks for struct out_update_header */
	LASSERTF((int)sizeof(struct out_update_header) == 16, "found %lld\n",
		 (long long)(int)sizeof(struct out_update_header));
	LASSERTF((int)offsetof(struct out_update_header, ouh_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_header, ouh_magic));
	LASSERTF((int)sizeof(((struct out_update_header *)0)->ouh_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_header *)0)->ouh_magic));
	LASSERTF((int)offsetof(struct out_update_header, ouh_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_header, ouh_count));
	LASSERTF((int)sizeof(((struct out_update_header *)0)->ouh_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_header *)0)->ouh_count));
	LASSERTF((int)offsetof(struct out_update_header, ouh_inline_length) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_header, ouh_inline_length));
	LASSERTF((int)sizeof(((struct out_update_header *)0)->ouh_inline_length) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_header *)0)->ouh_inline_length));
	LASSERTF((int)offsetof(struct out_update_header, ouh_reply_size) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_header, ouh_reply_size));
	LASSERTF((int)sizeof(((struct out_update_header *)0)->ouh_reply_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_header *)0)->ouh_reply_size));
	LASSERTF((int)offsetof(struct out_update_header, ouh_inline_data) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_header, ouh_inline_data));
	LASSERTF((int)sizeof(*((struct out_update_header *)0)->ouh_inline_data) == 4, "found %lld\n",
		 (long long)(int)sizeof(*((struct out_update_header *)0)->ouh_inline_data));
	BUILD_BUG_ON(offsetof(struct out_update_header, ouh_inline_data) != sizeof(struct out_update_header));
	BUILD_BUG_ON(OUT_UPDATE_HEADER_MAGIC != 0xBDDF0001);
	BUILD_BUG_ON(OUT_UPDATE_MAX_INLINE_SIZE != 4096);

	/* Checks for struct out_update_buffer */
	LASSERTF((int)sizeof(struct out_update_buffer) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct out_update_buffer));
	LASSERTF((int)offsetof(struct out_update_buffer, oub_size) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_buffer, oub_size));
	LASSERTF((int)sizeof(((struct out_update_buffer *)0)->oub_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_buffer *)0)->oub_size));
	LASSERTF((int)offsetof(struct out_update_buffer, oub_padding) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct out_update_buffer, oub_padding));
	LASSERTF((int)sizeof(((struct out_update_buffer *)0)->oub_padding) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct out_update_buffer *)0)->oub_padding));

	/* Checks for struct lustre_disk_data */
	LASSERTF((int)sizeof(struct lustre_disk_data) == 12288, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_disk_data));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_magic));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_magic));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_feature_compat) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_feature_compat));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_compat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_compat));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_feature_rocompat) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_feature_rocompat));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_rocompat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_rocompat));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_feature_incompat) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_feature_incompat));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_incompat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_feature_incompat));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_config_ver) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_config_ver));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_config_ver) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_config_ver));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_flags) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_flags));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_flags));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_svindex) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_svindex));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_svindex) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_svindex));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_mount_type) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_mount_type));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_mount_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_mount_type));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_fsname) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_fsname));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_fsname) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_fsname));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_svname) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_svname));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_svname) == 64, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_svname));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_uuid) == 160, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_uuid));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_uuid));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_userdata) == 200, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_userdata));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_userdata) == 824, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_userdata));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_padding) == 1024, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_padding));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_padding) == 3072, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_padding));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_mount_opts) == 4096, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_mount_opts));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_mount_opts) == 4096, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_mount_opts));
	LASSERTF((int)offsetof(struct lustre_disk_data, ldd_params) == 8192, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_disk_data, ldd_params));
	LASSERTF((int)sizeof(((struct lustre_disk_data *)0)->ldd_params) == 4096, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_disk_data *)0)->ldd_params));
	LASSERTF(LDD_F_SV_TYPE_MDT == 0x0001, "found 0x%.8x\n",
		LDD_F_SV_TYPE_MDT);
	LASSERTF(LDD_F_SV_TYPE_OST == 0x0002, "found 0x%.8x\n",
		LDD_F_SV_TYPE_OST);
	LASSERTF(LDD_F_SV_TYPE_MGS == 0x0004, "found 0x%.8x\n",
		LDD_F_SV_TYPE_MGS);
	LASSERTF(LDD_F_NEED_INDEX == 0x0010, "found 0x%.8x\n",
		LDD_F_NEED_INDEX);
	LASSERTF(LDD_F_VIRGIN == 0x0020, "found 0x%.8x\n",
		LDD_F_VIRGIN);
	LASSERTF(LDD_F_UPDATE == 0x0040, "found 0x%.8x\n",
		LDD_F_UPDATE);
	LASSERTF(LDD_F_REWRITE_LDD == 0x0080, "found 0x%.8x\n",
		LDD_F_REWRITE_LDD);
	LASSERTF(LDD_F_WRITECONF == 0x0100, "found 0x%.8x\n",
		LDD_F_WRITECONF);
	LASSERTF(LDD_F_PARAM == 0x0400, "found 0x%.8x\n",
		LDD_F_PARAM);
	LASSERTF(LDD_F_NO_PRIMNODE == 0x1000, "found 0x%.8x\n",
		LDD_F_NO_PRIMNODE);
	LASSERTF(LDD_F_ERROR == 0x4000, "found 0x%.8x\n",
		LDD_F_ERROR);
	LASSERTF(LDD_F_PARAM2 == 0x8000, "found 0x%.8x\n",
		LDD_F_PARAM2);
	LASSERTF(LDD_F_NO_LOCAL_LOGS == 0x10000, "found 0x%.8x\n",
		LDD_F_NO_LOCAL_LOGS);
	LASSERTF(LDD_MAGIC == 0x1dd00001, "found 0x%.8x\n",
		LDD_MAGIC);
	LASSERTF(LDD_MT_EXT3 == 0, "found %lld\n",
		 (long long)LDD_MT_EXT3);
	LASSERTF(LDD_MT_LDISKFS == 1, "found %lld\n",
		 (long long)LDD_MT_LDISKFS);
	LASSERTF(LDD_MT_EXT3 == 0, "found %lld\n",
		 (long long)LDD_MT_EXT3);
	LASSERTF(LDD_MT_EXT3 == 0, "found %lld\n",
		 (long long)LDD_MT_EXT3);
	LASSERTF(LDD_MT_EXT3 == 0, "found %lld\n",
		 (long long)LDD_MT_EXT3);
	LASSERTF(LDD_MT_EXT3 == 0, "found %lld\n",
		 (long long)LDD_MT_EXT3);

	/* Checks for struct lr_server_data */
	LASSERTF((int)sizeof(struct lr_server_data) == 512, "found %lld\n",
		 (long long)(int)sizeof(struct lr_server_data));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_uuid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_uuid));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_uuid));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_last_transno) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_last_transno));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_last_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_last_transno));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_compat14) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_compat14));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_compat14) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_compat14));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_mount_count) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_mount_count));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_mount_count) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_mount_count));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_feature_compat) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_feature_compat));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_feature_compat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_feature_compat));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_feature_rocompat) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_feature_rocompat));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_feature_rocompat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_feature_rocompat));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_feature_incompat) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_feature_incompat));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_feature_incompat) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_feature_incompat));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_server_size) == 76, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_server_size));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_server_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_server_size));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_client_start) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_client_start));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_client_start) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_client_start));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_client_size) == 84, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_client_size));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_client_size) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_client_size));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_subdir_count) == 86, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_subdir_count));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_subdir_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_subdir_count));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_catalog_oid) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_catalog_oid));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_catalog_oid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_catalog_oid));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_catalog_ogen) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_catalog_ogen));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_catalog_ogen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_catalog_ogen));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_peeruuid) == 100, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_peeruuid));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_peeruuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_peeruuid));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_osd_index) == 140, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_osd_index));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_osd_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_osd_index));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_max_clients) == 144, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_max_clients));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_max_clients) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_max_clients));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_start_epoch) == 148, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_start_epoch));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_start_epoch) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_start_epoch));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_trans_table) == 152, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_trans_table));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_trans_table) == 128, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_trans_table));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_trans_table_time) == 280, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_trans_table_time));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_trans_table_time) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_trans_table_time));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_expire_intervals) == 284, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_expire_intervals));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_expire_intervals) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_expire_intervals));
	LASSERTF((int)offsetof(struct lr_server_data, lsd_padding) == 288, "found %lld\n",
		 (long long)(int)offsetof(struct lr_server_data, lsd_padding));
	LASSERTF((int)sizeof(((struct lr_server_data *)0)->lsd_padding) == 224, "found %lld\n",
		 (long long)(int)sizeof(((struct lr_server_data *)0)->lsd_padding));
	LASSERTF(LR_SERVER_SIZE == 512, "found %lld\n",
		 (long long)LR_SERVER_SIZE);
	LASSERTF(LR_EXPIRE_INTERVALS == 16, "found %lld\n",
		 (long long)LR_EXPIRE_INTERVALS);
	LASSERTF(LR_CLIENT_START == 8192, "found %lld\n",
		 (long long)LR_CLIENT_START);
	LASSERTF(LR_CLIENT_SIZE == 128, "found %lld\n",
		 (long long)LR_CLIENT_SIZE);
	LASSERTF(LR_CLIENT_SIZE == (int)sizeof(struct lsd_client_data), "%d != %d\n",
		 LR_CLIENT_SIZE, (int)sizeof(struct lsd_client_data));
	/* Checks for struct lsd_client_data */
	LASSERTF((int)sizeof(struct lsd_client_data) == 128, "found %lld\n",
		 (long long)(int)sizeof(struct lsd_client_data));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_uuid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_uuid));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_uuid) == 40, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_uuid));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_transno) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_transno));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_transno));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_xid) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_xid));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_xid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_xid));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_result) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_result));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_result) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_result));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_data) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_data));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_data) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_data));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_close_transno) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_close_transno));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_transno));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_close_xid) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_close_xid));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_xid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_xid));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_close_result) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_close_result));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_result) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_result));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_close_data) == 84, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_close_data));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_data) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_close_data));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_pre_versions) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_pre_versions));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_pre_versions) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_pre_versions));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_last_epoch) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_last_epoch));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_last_epoch) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_last_epoch));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_generation) == 124, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_generation));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_generation) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_generation));
	LASSERTF((int)offsetof(struct lsd_client_data, lcd_padding) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_client_data, lcd_padding));
	LASSERTF((int)sizeof(((struct lsd_client_data *)0)->lcd_padding) == 0, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_client_data *)0)->lcd_padding));

	/* Checks for struct lsd_reply_data_v1 */
	LASSERTF((int)sizeof(struct lsd_reply_data_v1) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lsd_reply_data_v1));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_transno) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v1, lrd_transno));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_transno));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_xid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v1, lrd_xid));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_xid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_xid));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_data) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v1, lrd_data));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_data) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_data));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_result) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v1, lrd_result));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_result) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_result));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_client_gen) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v1, lrd_client_gen));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_client_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_client_gen));
	/* Checks for struct lsd_reply_data_v2 */
	LASSERTF((int)sizeof(struct lsd_reply_data_v2) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct lsd_reply_data_v2));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_transno) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_transno));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_transno));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_xid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_xid));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_xid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_xid));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_data) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_data));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_data) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_data));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_result) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_result));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_result) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_result));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_client_gen) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_client_gen));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_client_gen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_client_gen));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_batch_idx) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_batch_idx));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_batch_idx) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_batch_idx));
	LASSERTF((int)offsetof(struct lsd_reply_data_v2, lrd_padding) == 36, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_data_v2, lrd_padding));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_padding) == 28, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_padding));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_transno) == (int)offsetof(struct lsd_reply_data_v2, lrd_transno), "%d != %d\n",
		 (int)offsetof(struct lsd_reply_data_v1, lrd_transno), (int)offsetof(struct lsd_reply_data_v2, lrd_transno));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_transno) == (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_transno), "%d != %d\n",
		 (int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_transno), (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_transno));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_xid) == (int)offsetof(struct lsd_reply_data_v2, lrd_xid), "%d != %d\n",
		 (int)offsetof(struct lsd_reply_data_v1, lrd_xid), (int)offsetof(struct lsd_reply_data_v2, lrd_xid));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_xid) == (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_xid), "%d != %d\n",
		 (int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_xid), (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_xid));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_data) == (int)offsetof(struct lsd_reply_data_v2, lrd_data), "%d != %d\n",
		 (int)offsetof(struct lsd_reply_data_v1, lrd_data), (int)offsetof(struct lsd_reply_data_v2, lrd_data));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_data) == (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_data), "%d != %d\n",
		 (int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_data), (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_data));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_result) == (int)offsetof(struct lsd_reply_data_v2, lrd_result), "%d != %d\n",
		 (int)offsetof(struct lsd_reply_data_v1, lrd_result), (int)offsetof(struct lsd_reply_data_v2, lrd_result));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_result) == (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_result), "%d != %d\n",
		 (int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_result), (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_result));
	LASSERTF((int)offsetof(struct lsd_reply_data_v1, lrd_client_gen) == (int)offsetof(struct lsd_reply_data_v2, lrd_client_gen), "%d != %d\n",
		 (int)offsetof(struct lsd_reply_data_v1, lrd_client_gen), (int)offsetof(struct lsd_reply_data_v2, lrd_client_gen));
	LASSERTF((int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_client_gen) == (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_client_gen), "%d != %d\n",
		 (int)sizeof(((struct lsd_reply_data_v1 *)0)->lrd_client_gen), (int)sizeof(((struct lsd_reply_data_v2 *)0)->lrd_client_gen));
	LASSERTF(LRH_MAGIC_V1 == 0xbdabda01UL, "found 0x%.8xUL\n",
		(unsigned)LRH_MAGIC_V1);
	LASSERTF(LRH_MAGIC_V2 == 0xbdabda02UL, "found 0x%.8xUL\n",
		(unsigned)LRH_MAGIC_V2);
	/* Checks for struct lsd_reply_header */
	LASSERTF((int)sizeof(struct lsd_reply_header) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lsd_reply_header));
	LASSERTF((int)offsetof(struct lsd_reply_header, lrh_magic) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_header, lrh_magic));
	LASSERTF((int)sizeof(((struct lsd_reply_header *)0)->lrh_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_header *)0)->lrh_magic));
	LASSERTF((int)offsetof(struct lsd_reply_header, lrh_header_size) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_header, lrh_header_size));
	LASSERTF((int)sizeof(((struct lsd_reply_header *)0)->lrh_header_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_header *)0)->lrh_header_size));
	LASSERTF((int)offsetof(struct lsd_reply_header, lrh_reply_size) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_header, lrh_reply_size));
	LASSERTF((int)sizeof(((struct lsd_reply_header *)0)->lrh_reply_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_header *)0)->lrh_reply_size));
	LASSERTF((int)offsetof(struct lsd_reply_header, lrh_pad) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lsd_reply_header, lrh_pad));
	LASSERTF((int)sizeof(((struct lsd_reply_header *)0)->lrh_pad) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct lsd_reply_header *)0)->lrh_pad));

	/* Checks for struct nodemap_cluster_rec */
	LASSERTF((int)sizeof(struct nodemap_cluster_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_cluster_rec));
	BUILD_BUG_ON(LUSTRE_NODEMAP_NAME_LENGTH != 16);
	LASSERTF((int)offsetof(struct nodemap_cluster_rec, ncr_name[16 + 1]) == 17, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_rec, ncr_name[16 + 1]));
	LASSERTF((int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_name[16 + 1]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_name[16 + 1]));
	/* nodemap_cluster_rec.ncr_flags is a bitfield and cannot be checked */
	/* nodemap_cluster_rec.ncr_flags2 is a bitfield and cannot be checked */
	LASSERTF((int)offsetof(struct nodemap_cluster_rec, ncr_padding1) == 19, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_rec, ncr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_padding1) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_padding1));
	LASSERTF((int)offsetof(struct nodemap_cluster_rec, ncr_squash_projid) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_rec, ncr_squash_projid));
	LASSERTF((int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_projid));
	LASSERTF((int)offsetof(struct nodemap_cluster_rec, ncr_squash_uid) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_rec, ncr_squash_uid));
	LASSERTF((int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_uid));
	LASSERTF((int)offsetof(struct nodemap_cluster_rec, ncr_squash_gid) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_rec, ncr_squash_gid));
	LASSERTF((int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_rec *)0)->ncr_squash_gid));

	/* Checks for struct nodemap_range_rec */
	LASSERTF((int)sizeof(struct nodemap_range_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_range_rec));
	LASSERTF((int)offsetof(struct nodemap_range_rec, nrr_start_nid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range_rec, nrr_start_nid));
	LASSERTF((int)sizeof(((struct nodemap_range_rec *)0)->nrr_start_nid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range_rec *)0)->nrr_start_nid));
	LASSERTF((int)offsetof(struct nodemap_range_rec, nrr_end_nid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range_rec, nrr_end_nid));
	LASSERTF((int)sizeof(((struct nodemap_range_rec *)0)->nrr_end_nid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range_rec *)0)->nrr_end_nid));
	LASSERTF((int)offsetof(struct nodemap_range_rec, nrr_padding1) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range_rec, nrr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_range_rec *)0)->nrr_padding1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range_rec *)0)->nrr_padding1));
	LASSERTF((int)offsetof(struct nodemap_range_rec, nrr_padding2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range_rec, nrr_padding2));
	LASSERTF((int)sizeof(((struct nodemap_range_rec *)0)->nrr_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range_rec *)0)->nrr_padding2));

	/* Checks for struct nodemap_range2_rec */
	LASSERTF((int)sizeof(struct nodemap_range2_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_range2_rec));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_nid_prefix) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_nid_prefix));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_nid_prefix) == 20, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_nid_prefix));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_padding1) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding1));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_padding2) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_padding2));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding2));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_padding3) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_padding3));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding3) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding3));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_padding4) == 30, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_padding4));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding4) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_padding4));
	LASSERTF((int)offsetof(struct nodemap_range2_rec, nrr_netmask) == 31, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_range2_rec, nrr_netmask));
	LASSERTF((int)sizeof(((struct nodemap_range2_rec *)0)->nrr_netmask) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_range2_rec *)0)->nrr_netmask));

	/* Checks for struct nodemap_id_rec */
	LASSERTF((int)sizeof(struct nodemap_id_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_id_rec));
	LASSERTF((int)offsetof(struct nodemap_id_rec, nir_id_fs) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_id_rec, nir_id_fs));
	LASSERTF((int)sizeof(((struct nodemap_id_rec *)0)->nir_id_fs) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_id_rec *)0)->nir_id_fs));
	LASSERTF((int)offsetof(struct nodemap_id_rec, nir_padding1) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_id_rec, nir_padding1));
	LASSERTF((int)sizeof(((struct nodemap_id_rec *)0)->nir_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_id_rec *)0)->nir_padding1));
	LASSERTF((int)offsetof(struct nodemap_id_rec, nir_padding2) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_id_rec, nir_padding2));
	LASSERTF((int)sizeof(((struct nodemap_id_rec *)0)->nir_padding2) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_id_rec *)0)->nir_padding2));
	LASSERTF((int)offsetof(struct nodemap_id_rec, nir_padding3) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_id_rec, nir_padding3));
	LASSERTF((int)sizeof(((struct nodemap_id_rec *)0)->nir_padding3) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_id_rec *)0)->nir_padding3));
	LASSERTF((int)offsetof(struct nodemap_id_rec, nir_padding4) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_id_rec, nir_padding4));
	LASSERTF((int)sizeof(((struct nodemap_id_rec *)0)->nir_padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_id_rec *)0)->nir_padding4));

	/* Checks for struct nodemap_global_rec */
	LASSERTF((int)sizeof(struct nodemap_global_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_global_rec));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_is_active) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_is_active));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_is_active) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_is_active));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding1) == 1, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding1) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding1));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding2) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding2));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding2) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding2));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding3) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding3));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding3));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding4) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding4));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding4));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding5) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding5));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding5));
	LASSERTF((int)offsetof(struct nodemap_global_rec, ngr_padding6) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_global_rec, ngr_padding6));
	LASSERTF((int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding6) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_global_rec *)0)->ngr_padding6));

	/* Checks for struct nodemap_cluster_roles_rec */
	LASSERTF((int)sizeof(struct nodemap_cluster_roles_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_cluster_roles_rec));
	LASSERTF((int)offsetof(struct nodemap_cluster_roles_rec, ncrr_roles) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_roles_rec, ncrr_roles));
	LASSERTF((int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_roles) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_roles));
	LASSERTF((int)offsetof(struct nodemap_cluster_roles_rec, ncrr_privs) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_roles_rec, ncrr_privs));
	LASSERTF((int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_privs) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_privs));
	LASSERTF((int)offsetof(struct nodemap_cluster_roles_rec, ncrr_roles_raise) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_roles_rec, ncrr_roles_raise));
	LASSERTF((int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_roles_raise) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_roles_raise));
	LASSERTF((int)offsetof(struct nodemap_cluster_roles_rec, ncrr_unused1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_cluster_roles_rec, ncrr_unused1));
	LASSERTF((int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_unused1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_cluster_roles_rec *)0)->ncrr_unused1));

	/* Checks for struct nodemap_offset_rec */
	LASSERTF((int)sizeof(struct nodemap_offset_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_offset_rec));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_start_uid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_start_uid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_uid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_limit_uid) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_limit_uid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_uid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_uid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_start_gid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_start_gid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_gid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_limit_gid) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_limit_gid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_gid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_gid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_start_projid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_start_projid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_start_projid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_limit_projid) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_limit_projid));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_projid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_limit_projid));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_padding1) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_padding1));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_padding1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_padding1));
	LASSERTF((int)offsetof(struct nodemap_offset_rec, nor_padding2) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_offset_rec, nor_padding2));
	LASSERTF((int)sizeof(((struct nodemap_offset_rec *)0)->nor_padding2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_offset_rec *)0)->nor_padding2));

	/* Checks for struct nodemap_fileset_header_rec */
	LASSERTF((int)sizeof(struct nodemap_fileset_header_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_fileset_header_rec));
	/* nodemap_cluster_rec.ncr_flags2 is a bitfield and cannot be checked */
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding1) == 1, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding1) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding1));
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding2) == 2, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding2));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding2) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding2));
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding3) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding3));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding3));
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding4) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding4));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding4));
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding5) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding5));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding5));
	LASSERTF((int)offsetof(struct nodemap_fileset_header_rec, nfr_padding6) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_header_rec, nfr_padding6));
	LASSERTF((int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding6) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_header_rec *)0)->nfr_padding6));

	/* Checks for struct nodemap_fileset_rec */
	LASSERTF((int)sizeof(struct nodemap_fileset_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_fileset_rec));
	BUILD_BUG_ON(LUSTRE_NODEMAP_FILESET_FRAGMENT_SIZE != 28);
	LASSERTF((int)offsetof(struct nodemap_fileset_rec, nfr_path_fragment[28]) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_rec, nfr_path_fragment[28]));
	LASSERTF((int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_path_fragment[28]) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_path_fragment[28]));
	LASSERTF((int)offsetof(struct nodemap_fileset_rec, nfr_fragment_id) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_rec, nfr_fragment_id));
	LASSERTF((int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_fragment_id) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_fragment_id));
	LASSERTF((int)offsetof(struct nodemap_fileset_rec, nfr_padding1) == 30, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_fileset_rec, nfr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_padding1) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_fileset_rec *)0)->nfr_padding1));

	/* Checks for struct nodemap_user_capabilities_rec */
	LASSERTF((int)sizeof(struct nodemap_user_capabilities_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_user_capabilities_rec));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_caps) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_caps));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_caps) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_caps));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_type) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_type));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_type) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_type));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding1) == 9, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding1));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding1) == 1, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding1));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding2) == 10, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding2));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding2) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding2));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding3) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding3));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding3));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding4) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding4));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding4) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding4));
	LASSERTF((int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding5) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_user_capabilities_rec, nucr_padding5));
	LASSERTF((int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding5) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_user_capabilities_rec *)0)->nucr_padding5));

	/* Checks for union nodemap_rec */
	LASSERTF((int)sizeof(union nodemap_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(union nodemap_rec));

	/* Checks for struct nodemap_key */
	LASSERTF((int)sizeof(struct nodemap_key) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct nodemap_key));
	LASSERTF((int)offsetof(struct nodemap_key, nk_nodemap_id) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_key, nk_nodemap_id));
	LASSERTF((int)sizeof(((struct nodemap_key *)0)->nk_nodemap_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_key *)0)->nk_nodemap_id));
	LASSERTF((int)offsetof(struct nodemap_key, nk_cluster_subid) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_key, nk_cluster_subid));
	LASSERTF((int)sizeof(((struct nodemap_key *)0)->nk_cluster_subid) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_key *)0)->nk_cluster_subid));
	LASSERTF((int)offsetof(struct nodemap_key, nk_range_id) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_key, nk_range_id));
	LASSERTF((int)sizeof(((struct nodemap_key *)0)->nk_range_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_key *)0)->nk_range_id));
	LASSERTF((int)offsetof(struct nodemap_key, nk_id_client) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_key, nk_id_client));
	LASSERTF((int)sizeof(((struct nodemap_key *)0)->nk_id_client) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_key *)0)->nk_id_client));
	LASSERTF((int)offsetof(struct nodemap_key, nk_unused) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct nodemap_key, nk_unused));
	LASSERTF((int)sizeof(((struct nodemap_key *)0)->nk_unused) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct nodemap_key *)0)->nk_unused));
	LASSERTF(NODEMAP_EMPTY_IDX == 0, "found %lld\n",
		 (long long)NODEMAP_EMPTY_IDX);
	LASSERTF(NODEMAP_CLUSTER_IDX == 1, "found %lld\n",
		 (long long)NODEMAP_CLUSTER_IDX);
	LASSERTF(NODEMAP_RANGE_IDX == 2, "found %lld\n",
		 (long long)NODEMAP_RANGE_IDX);
	LASSERTF(NODEMAP_UIDMAP_IDX == 3, "found %lld\n",
		 (long long)NODEMAP_UIDMAP_IDX);
	LASSERTF(NODEMAP_GIDMAP_IDX == 4, "found %lld\n",
		 (long long)NODEMAP_GIDMAP_IDX);
	LASSERTF(NODEMAP_PROJIDMAP_IDX == 5, "found %lld\n",
		 (long long)NODEMAP_PROJIDMAP_IDX);
	LASSERTF(NODEMAP_GLOBAL_IDX == 15, "found %lld\n",
		 (long long)NODEMAP_GLOBAL_IDX);
	LASSERTF(NODEMAP_CLUSTER_REC == 0, "found %lld\n",
		 (long long)NODEMAP_CLUSTER_REC);
	LASSERTF(NODEMAP_CLUSTER_ROLES == 1, "found %lld\n",
		 (long long)NODEMAP_CLUSTER_ROLES);
	LASSERTF(NODEMAP_CLUSTER_OFFSET == 2, "found %lld\n",
		 (long long)NODEMAP_CLUSTER_OFFSET);
	LASSERTF(NODEMAP_CLUSTER_CAPS == 3, "found %lld\n",
		 (long long)NODEMAP_CLUSTER_CAPS);
	LASSERTF(NM_TYPE_MASK == 0x0fffffffUL, "found 0x%.8xUL\n",
		(unsigned)NM_TYPE_MASK);
	LASSERTF(NM_TYPE_SHIFT == 28, "found %lld\n",
		 (long long)NM_TYPE_SHIFT);
	LASSERTF(NM_FL_ALLOW_ROOT_ACCESS == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_ALLOW_ROOT_ACCESS);
	LASSERTF(NM_FL_TRUST_CLIENT_IDS == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_TRUST_CLIENT_IDS);
	LASSERTF(NM_FL_DENY_UNKNOWN == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_DENY_UNKNOWN);
	LASSERTF(NM_FL_MAP_UID == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_MAP_UID);
	LASSERTF(NM_FL_MAP_GID == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_MAP_GID);
	LASSERTF(NM_FL_ENABLE_AUDIT == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_ENABLE_AUDIT);
	LASSERTF(NM_FL_FORBID_ENCRYPT == 0x00000040UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_FORBID_ENCRYPT);
	LASSERTF(NM_FL_MAP_PROJID == 0x00000080UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL_MAP_PROJID);
	LASSERTF(NM_FL2_READONLY_MOUNT == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL2_READONLY_MOUNT);
	LASSERTF(NM_FL2_DENY_MOUNT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned int)NM_FL2_DENY_MOUNT);
	LASSERTF(NM_FL2_FILESET_USE_IAM == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)NM_FL2_FILESET_USE_IAM);
	LASSERTF(NM_FL2_GSS_IDENTIFY == 0x00000008UL, "found 0x%.8xUL\n",
		 (unsigned int)NM_FL2_GSS_IDENTIFY);
	LASSERTF(NM_FS_FL_READONLY == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)NM_FS_FL_READONLY);
	LASSERTF(NM_RANGE_FL_REG == 0x00000000UL, "found 0x%.8xUL\n",
		 (unsigned)NM_RANGE_FL_REG);
	LASSERTF(NM_RANGE_FL_BAN == 0x00000001UL, "found 0x%.8xUL\n",
		 (unsigned)NM_RANGE_FL_BAN);
	LASSERTF(NODEMAP_UID == 0, "found %lld\n",
		 (long long)NODEMAP_UID);
	LASSERTF(NODEMAP_GID == 1, "found %lld\n",
		 (long long)NODEMAP_GID);
	LASSERTF(NODEMAP_PROJID == 2, "found %lld\n",
		 (long long)NODEMAP_PROJID);
	LASSERTF(NODEMAP_FS_TO_CLIENT == 0, "found %lld\n",
		 (long long)NODEMAP_FS_TO_CLIENT);
	LASSERTF(NODEMAP_CLIENT_TO_FS == 1, "found %lld\n",
		 (long long)NODEMAP_CLIENT_TO_FS);
	LASSERTF(NODEMAP_MAP_BOTH_LEGACY == 0x00000000UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_BOTH_LEGACY);
	LASSERTF(NODEMAP_MAP_UID == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_UID);
	LASSERTF(NODEMAP_MAP_GID == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_GID);
	LASSERTF(NODEMAP_MAP_BOTH == 0x00000003UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_BOTH);
	LASSERTF(NODEMAP_MAP_PROJID == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_PROJID);
	LASSERTF(NODEMAP_MAP_ALL == 0x00000007UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_MAP_ALL);
	LASSERTF(NODEMAP_RBAC_FILE_PERMS == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_FILE_PERMS);
	LASSERTF(NODEMAP_RBAC_DNE_OPS == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_DNE_OPS);
	LASSERTF(NODEMAP_RBAC_QUOTA_OPS == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_QUOTA_OPS);
	LASSERTF(NODEMAP_RBAC_BYFID_OPS == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_BYFID_OPS);
	LASSERTF(NODEMAP_RBAC_CHLG_OPS == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_CHLG_OPS);
	LASSERTF(NODEMAP_RBAC_FSCRYPT_ADMIN == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_FSCRYPT_ADMIN);
	LASSERTF(NODEMAP_RBAC_SERVER_UPCALL == 0x00000040UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_SERVER_UPCALL);
	LASSERTF(NODEMAP_RBAC_IGN_ROOT_PRJQUOTA == 0x00000080UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_IGN_ROOT_PRJQUOTA);
	LASSERTF(NODEMAP_RBAC_HSM_OPS == 0x00000100UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_HSM_OPS);
	LASSERTF(NODEMAP_RBAC_LOCAL_ADMIN == 0x00000200UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_LOCAL_ADMIN);
	LASSERTF(NODEMAP_RBAC_POOL_QUOTA_OPS == 0x00000400UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_POOL_QUOTA_OPS);
	LASSERTF(NODEMAP_RBAC_NONE == 0xfffff800UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RBAC_NONE);
	LASSERTF(NODEMAP_RBAC_ALL == 0xffffffffUL, "found 0x%.8xUL\n",
		(unsigned)NODEMAP_RBAC_ALL);
	LASSERTF(NODEMAP_RAISE_PRIV_RAISE == 0x00000001UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_RAISE);
	LASSERTF(NODEMAP_RAISE_PRIV_ADMIN == 0x00000002UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_ADMIN);
	LASSERTF(NODEMAP_RAISE_PRIV_TRUSTED == 0x00000004UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_TRUSTED);
	LASSERTF(NODEMAP_RAISE_PRIV_DENY_UNKN == 0x00000008UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_DENY_UNKN);
	LASSERTF(NODEMAP_RAISE_PRIV_RO == 0x00000010UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_RO);
	LASSERTF(NODEMAP_RAISE_PRIV_RBAC == 0x00000020UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_RBAC);
	LASSERTF(NODEMAP_RAISE_PRIV_FORBID_ENC == 0x00000040UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_FORBID_ENC);
	LASSERTF(NODEMAP_RAISE_PRIV_CAPS == 0x00000080UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_CAPS);
	LASSERTF(NODEMAP_RAISE_PRIV_DENY_MNT == 0x00000100UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_DENY_MNT);
	LASSERTF(NODEMAP_RAISE_PRIV_NONE == 0xfffffe00UL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_NONE);
	LASSERTF(NODEMAP_RAISE_PRIV_ALL == 0xffffffffUL, "found 0x%.8xUL\n",
		 (unsigned)NODEMAP_RAISE_PRIV_ALL);

	/* Checks for struct scrub_file */
	LASSERTF((int)sizeof(struct scrub_file) == 400, "found %lld\n",
		 (long long)(int)sizeof(struct scrub_file));
	LASSERTF((int)offsetof(struct scrub_file, sf_uuid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_uuid));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_uuid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_uuid));
	LASSERTF((int)offsetof(struct scrub_file, sf_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_flags));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_flags) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_flags));
	LASSERTF((int)offsetof(struct scrub_file, sf_magic) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_magic));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_magic) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_magic));
	LASSERTF((int)offsetof(struct scrub_file, sf_status) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_status));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_status) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_status));
	LASSERTF((int)offsetof(struct scrub_file, sf_param) == 30, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_param));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_param) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_param));
	LASSERTF((int)offsetof(struct scrub_file, sf_time_last_complete) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_time_last_complete));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_time_last_complete) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_time_last_complete));
	LASSERTF((int)offsetof(struct scrub_file, sf_time_latest_start) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_time_latest_start));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_time_latest_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_time_latest_start));
	LASSERTF((int)offsetof(struct scrub_file, sf_time_last_checkpoint) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_time_last_checkpoint));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_time_last_checkpoint) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_time_last_checkpoint));
	LASSERTF((int)offsetof(struct scrub_file, sf_pos_latest_start) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_pos_latest_start));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_pos_latest_start) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_pos_latest_start));
	LASSERTF((int)offsetof(struct scrub_file, sf_pos_last_checkpoint) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_pos_last_checkpoint));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_pos_last_checkpoint) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_pos_last_checkpoint));
	LASSERTF((int)offsetof(struct scrub_file, sf_pos_first_inconsistent) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_pos_first_inconsistent));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_pos_first_inconsistent) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_pos_first_inconsistent));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_checked) == 80, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_checked));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_checked) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_checked));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_updated) == 88, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_updated));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_updated) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_updated));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_failed) == 96, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_failed));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_failed) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_failed));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_updated_prior) == 104, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_updated_prior));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_updated_prior) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_updated_prior));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_noscrub) == 112, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_noscrub));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_noscrub) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_noscrub));
	LASSERTF((int)offsetof(struct scrub_file, sf_items_igif) == 120, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_items_igif));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_items_igif) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_items_igif));
	LASSERTF((int)offsetof(struct scrub_file, sf_run_time) == 128, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_run_time));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_run_time) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_run_time));
	LASSERTF((int)offsetof(struct scrub_file, sf_success_count) == 132, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_success_count));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_success_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_success_count));
	LASSERTF((int)offsetof(struct scrub_file, sf_oi_count) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_oi_count));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_oi_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_oi_count));
	LASSERTF((int)offsetof(struct scrub_file, sf_internal_flags) == 138, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_internal_flags));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_internal_flags) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_internal_flags));
	LASSERTF((int)offsetof(struct scrub_file, sf_reserved_1) == 140, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_reserved_1));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_reserved_1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_reserved_1));
	LASSERTF((int)offsetof(struct scrub_file, sf_reserved_2) == 144, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_reserved_2));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_reserved_2) == 128, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_reserved_2));
	LASSERTF((int)offsetof(struct scrub_file, sf_oi_bitmap) == 272, "found %lld\n",
		 (long long)(int)offsetof(struct scrub_file, sf_oi_bitmap));
	LASSERTF((int)sizeof(((struct scrub_file *)0)->sf_oi_bitmap) == 128, "found %lld\n",
		 (long long)(int)sizeof(((struct scrub_file *)0)->sf_oi_bitmap));
	LASSERTF(SCRUB_OI_BITMAP_SIZE == 128, "found %lld\n",
		 (long long)SCRUB_OI_BITMAP_SIZE);
	LASSERTF(SCRUB_MAGIC_V1 == 0x4C5FD252, "found 0x%.8x\n",
		SCRUB_MAGIC_V1);
	LASSERTF(SCRUB_MAGIC_V2 == 0x4C5FE253, "found 0x%.8x\n",
		SCRUB_MAGIC_V2);
	LASSERTF(SF_RECREATED == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)SF_RECREATED);
	LASSERTF(SF_INCONSISTENT == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)SF_INCONSISTENT);
	LASSERTF(SF_AUTO == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)SF_AUTO);
	LASSERTF(SF_UPGRADE == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)SF_UPGRADE);
	LASSERTF(SS_INIT == 0x00000000UL, "found 0x%.8xUL\n",
		(unsigned)SS_INIT);
	LASSERTF(SS_SCANNING == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)SS_SCANNING);
	LASSERTF(SS_COMPLETED == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)SS_COMPLETED);
	LASSERTF(SS_FAILED == 0x00000003UL, "found 0x%.8xUL\n",
		(unsigned)SS_FAILED);
	LASSERTF(SS_STOPPED == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)SS_STOPPED);
	LASSERTF(SS_PAUSED == 0x00000005UL, "found 0x%.8xUL\n",
		(unsigned)SS_PAUSED);
	LASSERTF(SS_CRASHED == 0x00000006UL, "found 0x%.8xUL\n",
		(unsigned)SS_CRASHED);
	LASSERTF(SP_FAILOUT == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)SP_FAILOUT);
	LASSERTF(SP_DRYRUN == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)SP_DRYRUN);

	LASSERTF(OFD_ACCESS_READ == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)OFD_ACCESS_READ);
	LASSERTF(OFD_ACCESS_WRITE == 0x00000002UL, "found 0x%.8xUL\n",
		(unsigned)OFD_ACCESS_WRITE);
	/* Checks for struct ofd_access_entry_v1 */
	LASSERTF((int)sizeof(struct ofd_access_entry_v1) == 64, "found %lld\n",
		 (long long)(int)sizeof(struct ofd_access_entry_v1));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_parent_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_parent_fid));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_parent_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_parent_fid));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_begin) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_begin));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_begin) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_begin));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_end) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_end));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_end) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_end));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_time) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_time));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_time) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_time));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_size) == 40, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_size));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_size));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_segment_count) == 44, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_segment_count));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_segment_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_segment_count));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_flags) == 48, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_flags));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_flags));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_reserved1) == 52, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_reserved1));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved1) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved1));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_reserved2) == 56, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_reserved2));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved2) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved2));
	LASSERTF((int)offsetof(struct ofd_access_entry_v1, oae_reserved3) == 60, "found %lld\n",
		 (long long)(int)offsetof(struct ofd_access_entry_v1, oae_reserved3));
	LASSERTF((int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved3) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct ofd_access_entry_v1 *)0)->oae_reserved3));

	LASSERTF(LUSTRE_ACCESS_LOG_VERSION_1 == 0x00010000UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_ACCESS_LOG_VERSION_1);
	LASSERTF(LUSTRE_ACCESS_LOG_TYPE_OFD == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LUSTRE_ACCESS_LOG_TYPE_OFD);
	/* Checks for struct lustre_access_log_info_v1 */
	LASSERTF((int)sizeof(struct lustre_access_log_info_v1) == 168, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_access_log_info_v1));
	LASSERTF((int)offsetof(struct lustre_access_log_info_v1, lali_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_access_log_info_v1, lali_version));
	LASSERTF((int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_version));
	LASSERTF((int)offsetof(struct lustre_access_log_info_v1, lali_type) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_access_log_info_v1, lali_type));
	LASSERTF((int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_type));
	LASSERTF((int)offsetof(struct lustre_access_log_info_v1, lali_name) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_access_log_info_v1, lali_name));
	LASSERTF((int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_name) == 128, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_name));
	LASSERTF((int)offsetof(struct lustre_access_log_info_v1, lali_log_size) == 136, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_access_log_info_v1, lali_log_size));
	LASSERTF((int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_log_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_log_size));
	LASSERTF((int)offsetof(struct lustre_access_log_info_v1, lali_entry_size) == 140, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_access_log_info_v1, lali_entry_size));
	LASSERTF((int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_entry_size) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_access_log_info_v1 *)0)->lali_entry_size));

	/* 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_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_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_comp_id) == 64, "found %lld\n",
		 (long long)(int)offsetof(struct lfsck_request, lr_comp_id));
	LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_comp_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lfsck_request *)0)->lr_comp_id));
	LASSERTF((int)offsetof(struct lfsck_request, lr_padding_0) == 68, "found %lld\n",
		 (long long)(int)offsetof(struct lfsck_request, lr_padding_0));
	LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_0) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_0));
	LASSERTF((int)offsetof(struct lfsck_request, lr_padding_1) == 72, "found %lld\n",
		 (long long)(int)offsetof(struct lfsck_request, lr_padding_1));
	LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_1) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_1));
	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(LFSCK_TYPE_SCRUB == 0x00000000UL, "found 0x%.8xUL\n",
		(unsigned)LFSCK_TYPE_SCRUB);
	LASSERTF(LFSCK_TYPE_LAYOUT == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)LFSCK_TYPE_LAYOUT);
	LASSERTF(LFSCK_TYPE_NAMESPACE == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LFSCK_TYPE_NAMESPACE);
	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_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(LE_SET_LMV_MASTER == 15, "found %lld\n",
		 (long long)LE_SET_LMV_MASTER);
	LASSERTF(LE_SET_LMV_SLAVE == 16, "found %lld\n",
		 (long long)LE_SET_LMV_SLAVE);
	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);
	LASSERTF(LEF_SET_LMV_HASH == 0x00000004UL, "found 0x%.8xUL\n",
		(unsigned)LEF_SET_LMV_HASH);
	LASSERTF(LEF_SET_LMV_ALL == 0x00000008UL, "found 0x%.8xUL\n",
		(unsigned)LEF_SET_LMV_ALL);
	LASSERTF(LEF_RECHECK_NAME_HASH == 0x00000010UL, "found 0x%.8xUL\n",
		(unsigned)LEF_RECHECK_NAME_HASH);
	LASSERTF(LEF_QUERY_ALL == 0x00000020UL, "found 0x%.8xUL\n",
		(unsigned)LEF_QUERY_ALL);

	/* 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_repaired) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lfsck_reply, lr_repaired));
	LASSERTF((int)sizeof(((struct lfsck_reply *)0)->lr_repaired) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lfsck_reply *)0)->lr_repaired));

	/* Checks for struct update_params */
	LASSERTF((int)sizeof(struct update_params) == 0, "found %lld\n",
		 (long long)(int)sizeof(struct update_params));
	LASSERTF((int)offsetof(struct update_params, up_params) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct update_params, up_params));
	LASSERTF((int)sizeof(*((struct update_params *)0)->up_params) == 8, "found %lld\n",
		 (long long)(int)sizeof(*((struct update_params *)0)->up_params));

	/* Checks for struct update_op */
	LASSERTF((int)sizeof(struct update_op) == 20, "found %lld\n",
		 (long long)(int)sizeof(struct update_op));
	LASSERTF((int)offsetof(struct update_op, uop_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct update_op, uop_fid));
	LASSERTF((int)sizeof(((struct update_op *)0)->uop_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct update_op *)0)->uop_fid));
	LASSERTF((int)offsetof(struct update_op, uop_type) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct update_op, uop_type));
	LASSERTF((int)sizeof(((struct update_op *)0)->uop_type) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct update_op *)0)->uop_type));
	LASSERTF((int)offsetof(struct update_op, uop_param_count) == 18, "found %lld\n",
		 (long long)(int)offsetof(struct update_op, uop_param_count));
	LASSERTF((int)sizeof(((struct update_op *)0)->uop_param_count) == 2, "found %lld\n",
		 (long long)(int)sizeof(((struct update_op *)0)->uop_param_count));
	LASSERTF((int)offsetof(struct update_op, uop_params_off) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct update_op, uop_params_off));
	LASSERTF((int)sizeof(*((struct update_op *)0)->uop_params_off) == 2, "found %lld\n",
		 (long long)(int)sizeof(*((struct update_op *)0)->uop_params_off));

	/* Checks for struct update_ops */
	LASSERTF((int)sizeof(struct update_ops) == 0, "found %lld\n",
		 (long long)(int)sizeof(struct update_ops));
	LASSERTF((int)offsetof(struct update_ops, uops_op) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct update_ops, uops_op));
	LASSERTF((int)sizeof(*((struct update_ops *)0)->uops_op) == 20, "found %lld\n",
		 (long long)(int)sizeof(*((struct update_ops *)0)->uops_op));

	/* Checks for struct update_records */
	LASSERTF((int)sizeof(struct update_records) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct update_records));
	LASSERTF((int)offsetof(struct update_records, ur_master_transno) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_master_transno));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_master_transno) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_master_transno));
	LASSERTF((int)offsetof(struct update_records, ur_batchid) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_batchid));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_batchid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_batchid));
	LASSERTF((int)offsetof(struct update_records, ur_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_flags));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_flags));
	LASSERTF((int)offsetof(struct update_records, ur_index) == 20, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_index));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_index) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_index));
	LASSERTF((int)offsetof(struct update_records, ur_update_count) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_update_count));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_update_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_update_count));
	LASSERTF((int)offsetof(struct update_records, ur_param_count) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct update_records, ur_param_count));
	LASSERTF((int)sizeof(((struct update_records *)0)->ur_param_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct update_records *)0)->ur_param_count));
	LASSERTF(UPDATE_RECORD_CONTINUE == 0x00000001UL, "found 0x%.8xUL\n",
		(unsigned)UPDATE_RECORD_CONTINUE);

	/* Checks for struct llog_update_record */
	LASSERTF((int)sizeof(struct llog_update_record) == 48, "found %lld\n",
		 (long long)(int)sizeof(struct llog_update_record));
	LASSERTF((int)offsetof(struct llog_update_record, lur_hdr) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct llog_update_record, lur_hdr));
	LASSERTF((int)sizeof(((struct llog_update_record *)0)->lur_hdr) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_update_record *)0)->lur_hdr));
	LASSERTF((int)offsetof(struct llog_update_record, lur_update_rec) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct llog_update_record, lur_update_rec));
	LASSERTF((int)sizeof(((struct llog_update_record *)0)->lur_update_rec) == 32, "found %lld\n",
		 (long long)(int)sizeof(((struct llog_update_record *)0)->lur_update_rec));
#endif /* HAVE_SERVER_SUPPORT */

	/* Checks for struct lustre_cfg */
	LASSERTF((int)sizeof(struct lustre_cfg) == 32, "found %lld\n",
		 (long long)(int)sizeof(struct lustre_cfg));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_version) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_version));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_version) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_version));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_command) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_command));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_command) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_command));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_num) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_num));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_num) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_num));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_flags) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_flags));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_flags));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_nid) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_nid));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_nid) == 8, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_nid));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_nal) == 24, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_nal));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_nal) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_nal));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_bufcount) == 28, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_bufcount));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_bufcount) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_bufcount));
	LASSERTF((int)offsetof(struct lustre_cfg, lcfg_buflens[0]) == 32, "found %lld\n",
		 (long long)(int)offsetof(struct lustre_cfg, lcfg_buflens[0]));
	LASSERTF((int)sizeof(((struct lustre_cfg *)0)->lcfg_buflens[0]) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lustre_cfg *)0)->lcfg_buflens[0]));
	LASSERTF(LCFG_ATTACH == 0x000cf001UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_ATTACH);
	LASSERTF(LCFG_DETACH == 0x000cf002UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_DETACH);
	LASSERTF(LCFG_SETUP == 0x000cf003UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SETUP);
	LASSERTF(LCFG_CLEANUP == 0x000cf004UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_CLEANUP);
	LASSERTF(LCFG_ADD_UUID == 0x000cf005UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_ADD_UUID);
	LASSERTF(LCFG_DEL_UUID == 0x000cf006UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_DEL_UUID);
	LASSERTF(LCFG_MOUNTOPT == 0x000cf007UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_MOUNTOPT);
	LASSERTF(LCFG_DEL_MOUNTOPT == 0x000cf008UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_DEL_MOUNTOPT);
	LASSERTF(LCFG_SET_TIMEOUT == 0x000cf009UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SET_TIMEOUT);
	LASSERTF(LCFG_SET_UPCALL == 0x000cf00aUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SET_UPCALL);
	LASSERTF(LCFG_ADD_CONN == 0x000cf00bUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_ADD_CONN);
	LASSERTF(LCFG_DEL_CONN == 0x000cf00cUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_DEL_CONN);
	LASSERTF(LCFG_LOV_ADD_OBD == 0x000cf00dUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_LOV_ADD_OBD);
	LASSERTF(LCFG_LOV_DEL_OBD == 0x000cf00eUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_LOV_DEL_OBD);
	LASSERTF(LCFG_PARAM == 0x000cf00fUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_PARAM);
	LASSERTF(LCFG_MARKER == 0x000cf010UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_MARKER);
	LASSERTF(LCFG_LOG_START == 0x000ce011UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_LOG_START);
	LASSERTF(LCFG_LOG_END == 0x000ce012UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_LOG_END);
	LASSERTF(LCFG_LOV_ADD_INA == 0x000ce013UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_LOV_ADD_INA);
	LASSERTF(LCFG_ADD_MDC == 0x000cf014UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_ADD_MDC);
	LASSERTF(LCFG_DEL_MDC == 0x000cf015UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_DEL_MDC);
	LASSERTF(LCFG_SPTLRPC_CONF == 0x000ce016UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SPTLRPC_CONF);
	LASSERTF(LCFG_POOL_NEW == 0x000ce020UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_POOL_NEW);
	LASSERTF(LCFG_POOL_ADD == 0x000ce021UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_POOL_ADD);
	LASSERTF(LCFG_POOL_REM == 0x000ce022UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_POOL_REM);
	LASSERTF(LCFG_POOL_DEL == 0x000ce023UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_POOL_DEL);
	LASSERTF(LCFG_SET_LDLM_TIMEOUT == 0x000ce030UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SET_LDLM_TIMEOUT);
	LASSERTF(LCFG_PRE_CLEANUP == 0x000cf031UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_PRE_CLEANUP);
	LASSERTF(LCFG_SET_PARAM == 0x000ce032UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_SET_PARAM);
#ifdef HAVE_SERVER_SUPPORT
	LASSERTF(LCFG_NODEMAP_ADD == 0x000ce040UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD);
	LASSERTF(LCFG_NODEMAP_DEL == 0x000ce041UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL);
	LASSERTF(LCFG_NODEMAP_ADD_RANGE == 0x000ce042UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD_RANGE);
	LASSERTF(LCFG_NODEMAP_DEL_RANGE == 0x000ce043UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL_RANGE);
	LASSERTF(LCFG_NODEMAP_ADD_UIDMAP == 0x000ce044UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD_UIDMAP);
	LASSERTF(LCFG_NODEMAP_DEL_UIDMAP == 0x000ce045UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL_UIDMAP);
	LASSERTF(LCFG_NODEMAP_ADD_GIDMAP == 0x000ce046UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD_GIDMAP);
	LASSERTF(LCFG_NODEMAP_DEL_GIDMAP == 0x000ce047UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL_GIDMAP);
	LASSERTF(LCFG_NODEMAP_ACTIVATE == 0x000ce048UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ACTIVATE);
	LASSERTF(LCFG_NODEMAP_ADMIN == 0x000ce049UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADMIN);
	LASSERTF(LCFG_NODEMAP_ADD_PROJIDMAP == 0x000ce04aUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD_PROJIDMAP);
	LASSERTF(LCFG_NODEMAP_DEL_PROJIDMAP == 0x000ce04bUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL_PROJIDMAP);
	LASSERTF(LCFG_NODEMAP_ADD_OFFSET == 0x000ce04cUL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_ADD_OFFSET);
	LASSERTF(LCFG_NODEMAP_DEL_OFFSET == 0x000ce04dUL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_DEL_OFFSET);
	LASSERTF(LCFG_NODEMAP_TRUSTED == 0x000ce050UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_TRUSTED);
	LASSERTF(LCFG_NODEMAP_SQUASH_UID == 0x000ce051UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_SQUASH_UID);
	LASSERTF(LCFG_NODEMAP_SQUASH_GID == 0x000ce052UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_SQUASH_GID);
	LASSERTF(LCFG_NODEMAP_ADD_SHKEY == 0x000ce053UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_ADD_SHKEY);
	LASSERTF(LCFG_NODEMAP_DEL_SHKEY == 0x000ce054UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DEL_SHKEY);
	LASSERTF(LCFG_NODEMAP_TEST_NID == 0x000ce055UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_TEST_NID);
	LASSERTF(LCFG_NODEMAP_TEST_ID == 0x000ce056UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_TEST_ID);
	LASSERTF(LCFG_NODEMAP_SET_FILESET == 0x000ce057UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_SET_FILESET);
	LASSERTF(LCFG_NODEMAP_DENY_UNKNOWN == 0x000ce058UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_DENY_UNKNOWN);
	LASSERTF(LCFG_NODEMAP_MAP_MODE == 0x000ce059UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_MAP_MODE);
	LASSERTF(LCFG_NODEMAP_AUDIT_MODE == 0x000ce05aUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_AUDIT_MODE);
	LASSERTF(LCFG_NODEMAP_SET_SEPOL == 0x000ce05bUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_SET_SEPOL);
	LASSERTF(LCFG_NODEMAP_FORBID_ENCRYPT == 0x000ce05cUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_FORBID_ENCRYPT);
	LASSERTF(LCFG_NODEMAP_SQUASH_PROJID == 0x000ce05dUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_SQUASH_PROJID);
	LASSERTF(LCFG_NODEMAP_READONLY_MOUNT == 0x000ce05eUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_READONLY_MOUNT);
	LASSERTF(LCFG_NODEMAP_RBAC == 0x000ce05fUL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_RBAC);
	LASSERTF(LCFG_NODEMAP_DENY_MOUNT == 0x000ce060UL, "found 0x%.8xUL\n",
		(unsigned int)LCFG_NODEMAP_DENY_MOUNT);
	LASSERTF(LCFG_NODEMAP_RAISE_PRIVS == 0x000ce061UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_RAISE_PRIVS);
	LASSERTF(LCFG_NODEMAP_FILESET_ADD == 0x000ce062UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_FILESET_ADD);
	LASSERTF(LCFG_NODEMAP_SET_CAPS == 0x00ce063UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_SET_CAPS);
	LASSERTF(LCFG_NODEMAP_FILESET_DEL == 0x000ce064UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_FILESET_DEL);
	LASSERTF(LCFG_NODEMAP_GSS_IDENTIFY == 0x000ce065UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_GSS_IDENTIFY);
	LASSERTF(LCFG_NODEMAP_LOOKUP_SHA == 0x000ce066UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_LOOKUP_SHA);
	LASSERTF(LCFG_NODEMAP_FILESET_MODIFY == 0x000ce067UL, "found 0x%.8xUL\n",
		(unsigned)LCFG_NODEMAP_FILESET_MODIFY);
	LASSERTF(LCFG_NODEMAP_BANLIST_ADD == 0x000ce068UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_BANLIST_ADD);
	LASSERTF(LCFG_NODEMAP_BANLIST_DEL == 0x000ce069UL, "found 0x%.8xUL\n",
		 (unsigned)LCFG_NODEMAP_BANLIST_DEL);
#endif /* HAVE_SERVER_SUPPORT */
	LASSERTF(PORTALS_CFG_TYPE == 1, "found %lld\n",
		 (long long)PORTALS_CFG_TYPE);
	LASSERTF(LUSTRE_CFG_TYPE == 123, "found %lld\n",
		 (long long)LUSTRE_CFG_TYPE);

	/* Checks for struct lu_pcc_attach */
	LASSERTF((int)sizeof(struct lu_pcc_attach) == 8, "found %lld\n",
		 (long long)(int)sizeof(struct lu_pcc_attach));
	LASSERTF((int)offsetof(struct lu_pcc_attach, pcca_type) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_attach, pcca_type));
	LASSERTF((int)sizeof(((struct lu_pcc_attach *)0)->pcca_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_attach *)0)->pcca_type));
	LASSERTF((int)offsetof(struct lu_pcc_attach, pcca_id) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_attach, pcca_id));
	LASSERTF((int)sizeof(((struct lu_pcc_attach *)0)->pcca_id) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_attach *)0)->pcca_id));

	/* Checks for struct lu_pcc_detach */
	LASSERTF((int)sizeof(struct lu_pcc_detach) == 4, "found %lld\n",
		 (long long)(int)sizeof(struct lu_pcc_detach));
	LASSERTF((int)offsetof(struct lu_pcc_detach, pccd_flags) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_detach, pccd_flags));
	LASSERTF((int)sizeof(((struct lu_pcc_detach *)0)->pccd_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_detach *)0)->pccd_flags));

	/* Checks for struct lu_pcc_detach_fid */
	LASSERTF((int)sizeof(struct lu_pcc_detach_fid) == 20, "found %lld\n",
		 (long long)(int)sizeof(struct lu_pcc_detach_fid));
	LASSERTF((int)offsetof(struct lu_pcc_detach_fid, pccd_fid) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_detach_fid, pccd_fid));
	LASSERTF((int)sizeof(((struct lu_pcc_detach_fid *)0)->pccd_fid) == 16, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_detach_fid *)0)->pccd_fid));
	LASSERTF((int)offsetof(struct lu_pcc_detach_fid, pccd_flags) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_detach_fid, pccd_flags));
	LASSERTF((int)sizeof(((struct lu_pcc_detach_fid *)0)->pccd_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_detach_fid *)0)->pccd_flags));

	/* Checks for struct lu_pcc_state */
	LASSERTF((int)sizeof(struct lu_pcc_state) == 4112, "found %lld\n",
		 (long long)(int)sizeof(struct lu_pcc_state));
	LASSERTF((int)offsetof(struct lu_pcc_state, pccs_type) == 0, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_state, pccs_type));
	LASSERTF((int)sizeof(((struct lu_pcc_state *)0)->pccs_type) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_state *)0)->pccs_type));
	LASSERTF((int)offsetof(struct lu_pcc_state, pccs_open_count) == 4, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_state, pccs_open_count));
	LASSERTF((int)sizeof(((struct lu_pcc_state *)0)->pccs_open_count) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_state *)0)->pccs_open_count));
	LASSERTF((int)offsetof(struct lu_pcc_state, pccs_flags) == 8, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_state, pccs_flags));
	LASSERTF((int)sizeof(((struct lu_pcc_state *)0)->pccs_flags) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_state *)0)->pccs_flags));
	LASSERTF((int)offsetof(struct lu_pcc_state, pccs_namelen) == 12, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_state, pccs_namelen));
	LASSERTF((int)sizeof(((struct lu_pcc_state *)0)->pccs_namelen) == 4, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_state *)0)->pccs_namelen));
	LASSERTF((int)offsetof(struct lu_pcc_state, pccs_path) == 16, "found %lld\n",
		 (long long)(int)offsetof(struct lu_pcc_state, pccs_path));
	LASSERTF((int)sizeof(((struct lu_pcc_state *)0)->pccs_path) == 4096, "found %lld\n",
		 (long long)(int)sizeof(((struct lu_pcc_state *)0)->pccs_path));
}
