From: Andrew Deason Date: Tue, 24 Nov 2009 21:09:42 +0000 (-0500) Subject: Dump all hostFlags in hosts.dump X-Git-Tag: openafs-stable-1_4_12pre1~93 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=06919285b93434b21dda2c0050ef51fb3aea8a76;p=packages%2Fo%2Fopenafs.git Dump all hostFlags in hosts.dump Currently only certain flags are dumped in hosts.dump. Also dump the value of hostFlags itself, so we get more information from a host dump. Reviewed-on: http://gerrit.openafs.org/869 Tested-by: Andrew Deason Reviewed-by: Dan Hyde Reviewed-by: Alistair Ferguson Tested-by: Alistair Ferguson Reviewed-by: Derrick Brashear (cherry picked from commit 3cb49f57a34b42c9efdc24797efda053cd88be80) Change-Id: Ib6e7df4dcdbf8cbba7bb027ab54b753f2b857326 Reviewed-on: http://gerrit.openafs.org/908 Tested-by: Andrew Deason Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index 7071e202d..06d86853d 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2621,7 +2621,7 @@ h_DumpHost(register struct host *host, int held, StreamHandle_t * file) sprintf(tmpStr, "%04x", host->holds[i]); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); } - sprintf(tmpStr, " slot/bit: %d/%d\n", h_holdSlot(), h_holdbit()); + sprintf(tmpStr, " slot/bit: %d/%d hostFlags:%hu\n", h_holdSlot(), h_holdbit(), host->hostFlags); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); H_UNLOCK;