X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fwiretest.c;h=d187035c341dd69284cfcf90758254f5c59b27a6;hb=218d9b7631b25e9e2ea4e2c4e8b752aa13749c18;hp=24c1a168e882f912776fb8fb5b820ddc311e36f9;hpb=7358e0b344f8455f1a07fffeb4ae2dd2a85b47b3;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c index 24c1a16..d187035 100644 --- a/lustre/ptlrpc/wiretest.c +++ b/lustre/ptlrpc/wiretest.c @@ -125,7 +125,7 @@ void lustre_assert_wire_constants(void) (long long)REINT_RENAME); LASSERTF(REINT_OPEN == 6, " found %lld\n", (long long)REINT_OPEN); - LASSERTF(REINT_MAX == 7, " found %lld\n", + LASSERTF(REINT_MAX == 8, " found %lld\n", (long long)REINT_MAX); LASSERTF(MGS_CONNECT == 250, " found %lld\n", (long long)MGS_CONNECT); @@ -472,6 +472,7 @@ void lustre_assert_wire_constants(void) CLASSERT(OBD_CONNECT_LRU_RESIZE == 0x02000000ULL); CLASSERT(OBD_CONNECT_MDS_MDS == 0x04000000ULL); CLASSERT(OBD_CONNECT_REAL == 0x08000000ULL); + CLASSERT(OBD_CONNECT_CKSUM == 0x20000000ULL); /* Checks for struct obdo */ LASSERTF((int)sizeof(struct obdo) == 208, " found %lld\n", @@ -1149,6 +1150,22 @@ void lustre_assert_wire_constants(void) (long long)(int)offsetof(struct mds_rec_setattr, sa_attr_flags)); LASSERTF((int)sizeof(((struct mds_rec_setattr *)0)->sa_attr_flags) == 4, " found %lld\n", (long long)(int)sizeof(((struct mds_rec_setattr *)0)->sa_attr_flags)); + CLASSERT(MDS_ATTR_MODE == 1); + CLASSERT(MDS_ATTR_UID == 2); + CLASSERT(MDS_ATTR_GID == 4); + CLASSERT(MDS_ATTR_SIZE == 8); + CLASSERT(MDS_ATTR_ATIME == 16); + CLASSERT(MDS_ATTR_MTIME == 32); + CLASSERT(MDS_ATTR_CTIME == 64); + CLASSERT(MDS_ATTR_ATIME_SET == 128); + CLASSERT(MDS_ATTR_MTIME_SET == 256); + CLASSERT(MDS_ATTR_FORCE == 512); + CLASSERT(MDS_ATTR_ATTR_FLAG == 1024); + CLASSERT(MDS_ATTR_KILL_SUID == 2048); + CLASSERT(MDS_ATTR_KILL_SGID == 4096); + CLASSERT(MDS_ATTR_CTIME_SET == 8192); + CLASSERT(MDS_ATTR_FROM_OPEN == 16384); + CLASSERT(MDS_ATTR_BLOCKS == 32768); /* Checks for struct mds_rec_create */ LASSERTF((int)sizeof(struct mds_rec_create) == 96, " found %lld\n",