From: bobijam Date: Tue, 10 Mar 2009 02:25:49 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_164~13 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9aa6b9ed2efb97023a0f31949f7c6d57afe54b26 Branch HEAD b=12069 i=adilger Reserve bits for checksum type. --- diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index 7e9cfdd..74623ae 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -898,7 +898,10 @@ typedef __u32 obd_count; #define OBD_FL_TRUNCLOCK (0x00000800) /* delegate DLM locking during punch */ #define OBD_FL_CKSUM_CRC32 (0x00001000) /* CRC32 checksum type */ #define OBD_FL_CKSUM_ADLER (0x00002000) /* ADLER checksum type */ -#define OBD_FL_SHRINK_GRANT (0x00004000) /* object shrink the grant */ +#define OBD_FL_CKSUM_RESV1 (0x00004000) /* reserved for future checksum type */ +#define OBD_FL_CKSUM_RESV2 (0x00008000) /* reserved for future checksum type */ +#define OBD_FL_CKSUM_RESV3 (0x00010000) /* reserved for future checksum type */ +#define OBD_FL_SHRINK_GRANT (0x00020000) /* object shrink the grant */ #define OBD_FL_CKSUM_ALL (OBD_FL_CKSUM_CRC32 | OBD_FL_CKSUM_ADLER) diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c index b5199d4..c04abbe 100644 --- a/lustre/ptlrpc/wiretest.c +++ b/lustre/ptlrpc/wiretest.c @@ -649,6 +649,7 @@ void lustre_assert_wire_constants(void) CLASSERT(OBD_FL_TRUNCLOCK == (0x00000800)); CLASSERT(OBD_FL_CKSUM_CRC32 == (0x00001000)); CLASSERT(OBD_FL_CKSUM_ADLER == (0x00002000)); + CLASSERT(OBD_FL_SHRINK_GRANT == (0x00020000)); CLASSERT(OBD_CKSUM_CRC32 == 1); CLASSERT(OBD_CKSUM_ADLER == 2); diff --git a/lustre/utils/wirecheck.c b/lustre/utils/wirecheck.c index ed189d9..a3f2382 100644 --- a/lustre/utils/wirecheck.c +++ b/lustre/utils/wirecheck.c @@ -303,6 +303,7 @@ check_obdo(void) CHECK_CDEFINE(OBD_FL_TRUNCLOCK); CHECK_CDEFINE(OBD_FL_CKSUM_CRC32); CHECK_CDEFINE(OBD_FL_CKSUM_ADLER); + CHECK_CDEFINE(OBD_FL_SHRINK_GRANT); CHECK_CVALUE(OBD_CKSUM_CRC32); CHECK_CVALUE(OBD_CKSUM_ADLER); } diff --git a/lustre/utils/wiretest.c b/lustre/utils/wiretest.c index b2c591b..5224858 100644 --- a/lustre/utils/wiretest.c +++ b/lustre/utils/wiretest.c @@ -646,6 +646,7 @@ void lustre_assert_wire_constants(void) CLASSERT(OBD_FL_TRUNCLOCK == (0x00000800)); CLASSERT(OBD_FL_CKSUM_CRC32 == (0x00001000)); CLASSERT(OBD_FL_CKSUM_ADLER == (0x00002000)); + CLASSERT(OBD_FL_SHRINK_GRANT == (0x00020000)); CLASSERT(OBD_CKSUM_CRC32 == 1); CLASSERT(OBD_CKSUM_ADLER == 2);