From: johann Date: Wed, 26 Dec 2007 08:27:13 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~870 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=86c272a6864925a46b51edd48bb96e1342cd7403;p=fs%2Flustre-release.git Branch b1_6 b=13805 i=adilger Reserve OBD_CONNECT_CKSUM. #define OBD_CONNECT_CKSUM 0x20000000ULL /*support several cksum algos */ --- diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index a3ba388..24eb803 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -289,6 +289,7 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb); #define OBD_CONNECT_LRU_RESIZE 0x02000000ULL /*Lru resize feature. */ #define OBD_CONNECT_MDS_MDS 0x04000000ULL /*MDS-MDS connection */ #define OBD_CONNECT_REAL 0x08000000ULL /*real connection */ +#define OBD_CONNECT_CKSUM 0x20000000ULL /*support several cksum algos */ /* also update obd_connect_names[] for lprocfs_rd_connect_flags() * and lustre/utils/wirecheck.c */ diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 2fb7598..521b393 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -660,6 +660,8 @@ static const char *obd_connect_names[] = { "lru_resize", "mds_mds_connection", "real_conn", + "change_qunit_size", + "alt_checksum_algorithm", NULL }; diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c index a80cbec..cfd57ac 100644 --- a/lustre/ptlrpc/wiretest.c +++ b/lustre/ptlrpc/wiretest.c @@ -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", diff --git a/lustre/utils/wirecheck.c b/lustre/utils/wirecheck.c index c9e5593..84361bf 100644 --- a/lustre/utils/wirecheck.c +++ b/lustre/utils/wirecheck.c @@ -204,6 +204,7 @@ static void check_obd_connect_data(void) CHECK_CDEFINE(OBD_CONNECT_LRU_RESIZE); CHECK_CDEFINE(OBD_CONNECT_MDS_MDS); CHECK_CDEFINE(OBD_CONNECT_REAL); + CHECK_CDEFINE(OBD_CONNECT_CKSUM); } static void diff --git a/lustre/utils/wiretest.c b/lustre/utils/wiretest.c index b2b832f..4be556c 100644 --- a/lustre/utils/wiretest.c +++ b/lustre/utils/wiretest.c @@ -488,6 +488,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",