]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Dump all hostFlags in hosts.dump
authorAndrew Deason <adeason@sinenomine.net>
Tue, 24 Nov 2009 21:09:42 +0000 (16:09 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 7 Dec 2009 18:33:39 +0000 (10:33 -0800)
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.

Change-Id: I2d265b85e057c2d44938e1d92f4c102048c4bf1f
Reviewed-on: http://gerrit.openafs.org/869
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Tested-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/host.c

index 01ebee9a0ddb223b4a71502797e0145daa693221..7fc2e45ffb96545b9971288ff520ff3cb1145718 100644 (file)
@@ -2667,7 +2667,7 @@ h_DumpHost(register struct host *host, int flags, void *rock)
                     ntohs(host->interface->interface[i].port));
            (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file);
        }
-    sprintf(tmpStr, "] refCount: %d\n", host->refCount);
+    sprintf(tmpStr, "] refCount:%d hostFlags:%hu\n", host->refCount, host->hostFlags);
     (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file);
 
     H_UNLOCK;