From: Marc Dionne Date: Sat, 25 May 2013 14:43:45 +0000 (-0400) Subject: volser: Adjust TLV tag range X-Git-Tag: openafs-stable-1_8_0pre1~1149 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=caa90b2d7a22549e586d92961b7a6b677e4c22e2 volser: Adjust TLV tag range Tag values up to D_MAX cannot be used as TLV tags, as the parsing logic assumes anything up to D_MAX is a control tag. Adjust MIN_TLV_TAG to 21 so that the TLV range sits just above D_MAX. Change-Id: I8d55f536b82e209847400b5ac6689364abe44090 Reviewed-on: http://gerrit.openafs.org/9942 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index ee4a794..55efa69 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -86,7 +86,9 @@ static int SizeDumpVnode(struct iod *iodp, struct VnodeDiskObject *v, struct volintSize *size); #define MAX_SECTIONS 3 -#define MIN_TLV_TAG 5 + +/* The TLV range must start above D_MAX */ +#define MIN_TLV_TAG 21 #define MAX_TLV_TAG 0x60 #define MAX_STANDARD_TAG 0x7a static afs_uint32 oldtags[MAX_SECTIONS][16];