|
@@ -3745,32 +3745,28 @@ void lustre_assert_wire_constants(void)
|
|
CLASSERT(FIEMAP_EXTENT_NET == 0x80000000);
|
|
CLASSERT(FIEMAP_EXTENT_NET == 0x80000000);
|
|
|
|
|
|
/* Checks for type posix_acl_xattr_entry */
|
|
/* 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));
|
|
|
|
|
|
+ LASSERTF((int)sizeof(struct posix_acl_xattr_entry) == 8, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(struct posix_acl_xattr_entry));
|
|
|
|
+ LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_tag) == 0, "found %lld\n",
|
|
|
|
+ (long long)(int)offsetof(struct posix_acl_xattr_entry, e_tag));
|
|
|
|
+ LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_tag) == 2, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_tag));
|
|
|
|
+ LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_perm) == 2, "found %lld\n",
|
|
|
|
+ (long long)(int)offsetof(struct posix_acl_xattr_entry, e_perm));
|
|
|
|
+ LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_perm) == 2, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_perm));
|
|
|
|
+ LASSERTF((int)offsetof(struct posix_acl_xattr_entry, e_id) == 4, "found %lld\n",
|
|
|
|
+ (long long)(int)offsetof(struct posix_acl_xattr_entry, e_id));
|
|
|
|
+ LASSERTF((int)sizeof(((struct posix_acl_xattr_entry *)0)->e_id) == 4, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(((struct posix_acl_xattr_entry *)0)->e_id));
|
|
|
|
|
|
/* Checks for type posix_acl_xattr_header */
|
|
/* 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));
|
|
|
|
|
|
+ LASSERTF((int)sizeof(struct posix_acl_xattr_header) == 4, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(struct posix_acl_xattr_header));
|
|
|
|
+ LASSERTF((int)offsetof(struct posix_acl_xattr_header, a_version) == 0, "found %lld\n",
|
|
|
|
+ (long long)(int)offsetof(struct posix_acl_xattr_header, a_version));
|
|
|
|
+ LASSERTF((int)sizeof(((struct posix_acl_xattr_header *)0)->a_version) == 4, "found %lld\n",
|
|
|
|
+ (long long)(int)sizeof(((struct posix_acl_xattr_header *)0)->a_version));
|
|
|
|
|
|
/* Checks for struct link_ea_header */
|
|
/* Checks for struct link_ea_header */
|
|
LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",
|
|
LASSERTF((int)sizeof(struct link_ea_header) == 24, "found %lld\n",
|