From: Tom Keiser Date: Wed, 13 Oct 2010 06:15:36 +0000 (-0400) Subject: update fssync-debug to handle the VOL_LOCKED flag X-Git-Tag: upstream/1.8.0_pre1^2~4679 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=198447ee71ca6510b760141395af5002daab2424;p=packages%2Fo%2Fopenafs.git update fssync-debug to handle the VOL_LOCKED flag Allow fssync-debug to dump the VOL_LOCKED flag, rather than the current behavior of printing absolutely nothing when this flag is asserted. In addition, increase the flag buffer size since it turns out we would truncate if all nine flags were asserted at once. Change-Id: I4d58f8c599dcc3b17f8cfd76e88dac12097207c1 Reviewed-on: http://gerrit.openafs.org/2971 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/vol/fssync-debug.c b/src/vol/fssync-debug.c index 271c67fc6..fb83e4826 100644 --- a/src/vol/fssync-debug.c +++ b/src/vol/fssync-debug.c @@ -615,7 +615,7 @@ vol_state_to_string(VolState state) static char * vol_flags_to_string(afs_uint16 flags) { - static char str[128]; + static char str[256]; int count = 0; str[0]='\0'; @@ -627,6 +627,7 @@ vol_flags_to_string(afs_uint16 flags) FLAGCASE(flags, VOL_IS_BUSY, str, count); FLAGCASE(flags, VOL_ON_VLRU, str, count); FLAGCASE(flags, VOL_HDR_DONTSALV, str, count); + FLAGCASE(flags, VOL_LOCKED, str, count); return str; }