]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-multi-check-servers-20080207
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 20:29:19 +0000 (20:29 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 20:29:19 +0000 (20:29 +0000)
LICENSE MIT

for multi must compute the host string from the ip address for each server

(cherry picked from commit f2be22f71001852d5d461b34ba2c13d3d53d5e10)

src/WINNT/afsd/cm_server.c

index 20c62172868e15fbf2372154fe1a28a2e0578614..600c60bd6742cdde6607b37efb259ff0530d27e9 100644 (file)
@@ -384,6 +384,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                     tsp->capabilities = 0;
                 }
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -421,6 +422,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -510,6 +512,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 tsp->downTime = 0;
                 tsp->capabilities = 0;
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -547,6 +550,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -661,6 +665,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 tsp->downTime = 0;
                 tsp->capabilities = 0;
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -698,6 +703,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",