]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
update fssync-debug to handle the VOL_LOCKED flag
authorTom Keiser <tkeiser@sinenomine.net>
Wed, 13 Oct 2010 06:15:36 +0000 (02:15 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Oct 2010 00:07:25 +0000 (17:07 -0700)
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.

Reviewed-on: http://gerrit.openafs.org/2971
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 198447ee71ca6510b760141395af5002daab2424)
Change-Id: Ia0ef7444577a8fb6480302a080397ee8674245cd
Reviewed-on: http://gerrit.openafs.org/3063
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/fssync-debug.c

index 2528e7f6f6d03068cfe09371e0d3216c6dbfd07b..49603f70a3916aabc2b3be04ba6157058ca6383b 100644 (file)
@@ -564,7 +564,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';
 
@@ -576,6 +576,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;
 }