]> 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>
Wed, 16 Dec 2009 18:49:23 +0000 (10:49 -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.

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>
(cherry picked from commit 3cb49f57a34b42c9efdc24797efda053cd88be80)

Change-Id: Ib6e7df4dcdbf8cbba7bb027ab54b753f2b857326
Reviewed-on: http://gerrit.openafs.org/908
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/host.c

index 7071e202d033ce2c6051434c93bd906e207d9c94..06d86853da3ac1b70cd760a9e87383eb71643b32 100644 (file)
@@ -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;