*/
#include <stdio.h>
-#include <liblustre.h>
-#include <lustre_lib.h>
+#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
#include <lustre_disk.h>
return ret;
}
-
void lustre_assert_wire_constants(void)
{
/* Wire protocol assertions generated by 'wirecheck'
* (make -C lustre/utils newwiretest)
- * running on Linux testnode 2.6.32 #3 SMP Thu Sep 13 12:42:57 PDT 2012 x86_64 x86_64 x86_64
- * with gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) */
+ * running on Linux u 2.6.32-431.5.1.el6.lustre.x86_64 #1 SMP Wed Feb 12 11:01:08 CST 2014 x8
+ * with gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) */
+
/* Constants... */
LASSERTF(PTL_RPC_MSG_REQUEST == 4711, "found %lld\n",
(long long)REINT_SETXATTR);
LASSERTF(REINT_RMENTRY == 8, "found %lld\n",
(long long)REINT_RMENTRY);
- LASSERTF(REINT_MAX == 9, "found %lld\n",
+ LASSERTF(REINT_MIGRATE == 9, "found %lld\n",
+ (long long)REINT_MIGRATE);
+ LASSERTF(REINT_MAX == 10, "found %lld\n",
(long long)REINT_MAX);
LASSERTF(DISP_IT_EXECD == 0x00000001UL, "found 0x%.8xUL\n",
(unsigned)DISP_IT_EXECD);
CLASSERT(FIEMAP_EXTENT_MERGED == 0x00001000);
CLASSERT(FIEMAP_EXTENT_NO_DIRECT == 0x40000000);
CLASSERT(FIEMAP_EXTENT_NET == 0x80000000);
-#ifdef LIBLUSTRE_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));
-
- /* 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));
- 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
/* Checks for struct link_ea_header */
LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",
(long long)(int)sizeof(((struct object_update_reply *)0)->ourp_lens));
/* Checks for struct lfsck_request */
- LASSERTF((int)sizeof(struct lfsck_request) == 64, "found %lld\n",
+ 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));
(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_padding_2) == 48, "found %lld\n",
+ LASSERTF((int)offsetof(struct lfsck_request, lr_fid2) == 48, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_fid2));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_fid2) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_fid2));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_fid3) == 64, "found %lld\n",
+ (long long)(int)offsetof(struct lfsck_request, lr_fid3));
+ LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_fid3) == 16, "found %lld\n",
+ (long long)(int)sizeof(((struct lfsck_request *)0)->lr_fid3));
+ LASSERTF((int)offsetof(struct lfsck_request, lr_padding_2) == 80, "found %lld\n",
(long long)(int)offsetof(struct lfsck_request, lr_padding_2));
LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_2) == 8, "found %lld\n",
(long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_2));
- LASSERTF((int)offsetof(struct lfsck_request, lr_padding_3) == 56, "found %lld\n",
+ LASSERTF((int)offsetof(struct lfsck_request, lr_padding_3) == 88, "found %lld\n",
(long long)(int)offsetof(struct lfsck_request, lr_padding_3));
LASSERTF((int)sizeof(((struct lfsck_request *)0)->lr_padding_3) == 8, "found %lld\n",
(long long)(int)sizeof(((struct lfsck_request *)0)->lr_padding_3));
+ LASSERTF(LE_LASTID_REBUILDING == 1, "found %lld\n",
+ (long long)LE_LASTID_REBUILDING);
+ LASSERTF(LE_LASTID_REBUILT == 2, "found %lld\n",
+ (long long)LE_LASTID_REBUILT);
+ LASSERTF(LE_PHASE1_DONE == 3, "found %lld\n",
+ (long long)LE_PHASE1_DONE);
+ LASSERTF(LE_PHASE2_DONE == 4, "found %lld\n",
+ (long long)LE_PHASE2_DONE);
+ LASSERTF(LE_START == 5, "found %lld\n",
+ (long long)LE_START);
+ LASSERTF(LE_STOP == 6, "found %lld\n",
+ (long long)LE_STOP);
+ LASSERTF(LE_QUERY == 7, "found %lld\n",
+ (long long)LE_QUERY);
+ LASSERTF(LE_FID_ACCESSED == 8, "found %lld\n",
+ (long long)LE_FID_ACCESSED);
+ LASSERTF(LE_PEER_EXIT == 9, "found %lld\n",
+ (long long)LE_PEER_EXIT);
+ LASSERTF(LE_CONDITIONAL_DESTROY == 10, "found %lld\n",
+ (long long)LE_CONDITIONAL_DESTROY);
+ LASSERTF(LE_PAIRS_VERIFY == 11, "found %lld\n",
+ (long long)LE_PAIRS_VERIFY);
+ LASSERTF(LEF_TO_OST == 0x00000001UL, "found 0x%.8xUL\n",
+ (unsigned)LEF_TO_OST);
+ LASSERTF(LEF_FROM_OST == 0x00000002UL, "found 0x%.8xUL\n",
+ (unsigned)LEF_FROM_OST);
/* Checks for struct lfsck_reply */
LASSERTF((int)sizeof(struct lfsck_reply) == 16, "found %lld\n",