From: tappro Date: Mon, 22 Aug 2005 07:41:59 +0000 (+0000) Subject: sanity test58 was failed due to structures changing. Setting proper values did fix... X-Git-Tag: 1.4.10~674 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2f8b0822fd8d9856d2c1017d0717f2e0a1f8ae9d;p=fs%2Flustre-release.git sanity test58 was failed due to structures changing. Setting proper values did fix that. --- diff --git a/lustre/utils/wiretest.c b/lustre/utils/wiretest.c index 1772652..e1ff6f2 100644 --- a/lustre/utils/wiretest.c +++ b/lustre/utils/wiretest.c @@ -1410,7 +1410,7 @@ void lustre_assert_wire_constants(void) (unsigned long long)(int)sizeof(((struct llogd_conn_body *)0)->lgdc_ctxt_idx)); /* Checks for struct lustre_capa */ - LASSERTF((int)sizeof(struct lustre_capa) == 56, " found %llu\n", + LASSERTF((int)sizeof(struct lustre_capa) == 60, " found %llu\n", (unsigned long long)(int)sizeof(struct lustre_capa)); LASSERTF((int)offsetof(struct lustre_capa, lc_uid) == 0, " found %llu\n", (unsigned long long)(int)offsetof(struct lustre_capa, lc_uid)); @@ -1442,11 +1442,11 @@ void lustre_assert_wire_constants(void) (unsigned long long)(int)sizeof(((struct lustre_capa *)0)->lc_flags)); LASSERTF((int)offsetof(struct lustre_capa, lc_hmac) == 40, " found %llu\n", (unsigned long long)(int)offsetof(struct lustre_capa, lc_hmac)); - LASSERTF((int)sizeof(((struct lustre_capa *)0)->lc_hmac) == 16, " found %llu\n", + LASSERTF((int)sizeof(((struct lustre_capa *)0)->lc_hmac) == 20, " found %llu\n", (unsigned long long)(int)sizeof(((struct lustre_capa *)0)->lc_hmac)); /* Checks for struct lustre_capa_key */ - LASSERTF((int)sizeof(struct lustre_capa_key) == 32, " found %llu\n", + LASSERTF((int)sizeof(struct lustre_capa_key) == 36, " found %llu\n", (unsigned long long)(int)sizeof(struct lustre_capa_key)); LASSERTF((int)offsetof(struct lustre_capa_key, lk_mdsid) == 0, " found %llu\n", (unsigned long long)(int)offsetof(struct lustre_capa_key, lk_mdsid)); @@ -1462,7 +1462,7 @@ void lustre_assert_wire_constants(void) (unsigned long long)(int)sizeof(((struct lustre_capa_key *)0)->lk_expiry)); LASSERTF((int)offsetof(struct lustre_capa_key, lk_key) == 16, " found %llu\n", (unsigned long long)(int)offsetof(struct lustre_capa_key, lk_key)); - LASSERTF((int)sizeof(((struct lustre_capa_key *)0)->lk_key) == 16, " found %llu\n", + LASSERTF((int)sizeof(((struct lustre_capa_key *)0)->lk_key) == 20, " found %llu\n", (unsigned long long)(int)sizeof(((struct lustre_capa_key *)0)->lk_key)); }