From caa90b2d7a22549e586d92961b7a6b677e4c22e2 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sat, 25 May 2013 10:43:45 -0400 Subject: [PATCH] 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 --- src/volser/dumpstuff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index ee4a79465..55efa695d 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]; -- 2.39.5