From 03c4552711e0fa2c0b35fe2a2c985ce117714fb9 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 24 Aug 2004 18:20:08 +0000 Subject: [PATCH] - struct obd should be 64bits aligned --- lustre/ptlrpc/pack_generic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 97d1501..9e23211b 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -1078,7 +1078,7 @@ void lustre_assert_wire_constants(void) (long long)(int)sizeof(((struct lustre_msg *)0)->buflens[7])); /* Checks for struct obdo */ - LASSERTF((int)sizeof(struct obdo) == 172, " found %lld\n", + LASSERTF((int)sizeof(struct obdo) == 176, " found %lld\n", (long long)(int)sizeof(struct obdo)); LASSERTF((int)offsetof(struct obdo, o_id) == 0, " found %lld\n", (long long)(int)offsetof(struct obdo, o_id)); @@ -1152,7 +1152,7 @@ void lustre_assert_wire_constants(void) (long long)(int)offsetof(struct obdo, o_easize)); LASSERTF((int)sizeof(((struct obdo *)0)->o_easize) == 4, " found %lld\n", (long long)(int)sizeof(((struct obdo *)0)->o_easize)); - LASSERTF((int)offsetof(struct obdo, o_inline) == 108, " found %lld\n", + LASSERTF((int)offsetof(struct obdo, o_inline) == 112, " found %lld\n", (long long)(int)offsetof(struct obdo, o_inline)); LASSERTF((int)sizeof(((struct obdo *)0)->o_inline) == 64, " found %lld\n", (long long)(int)sizeof(((struct obdo *)0)->o_inline)); @@ -1362,11 +1362,11 @@ void lustre_assert_wire_constants(void) (long long)OBD_BRW_FROM_GRANT); /* Checks for struct ost_body */ - LASSERTF((int)sizeof(struct ost_body) == 172, " found %lld\n", + LASSERTF((int)sizeof(struct ost_body) == 176, " 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) == 172, " found %lld\n", + LASSERTF((int)sizeof(((struct ost_body *)0)->oa) == 176, " found %lld\n", (long long)(int)sizeof(((struct ost_body *)0)->oa)); /* Checks for struct ll_fid */ -- 1.8.3.1