From 2d0cd9f1132380b0e9662750b4e733be2fd79645 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 1 Feb 2008 21:40:58 +0000 Subject: [PATCH] STABLE14-h-enumerate-less-heavyhanded-check-20080201 LICENSE IPL10 if hostCount is too small this is fine or at least not fatal (cherry picked from commit 4fe2978f69f6314284d5689ea1d9169360155450) --- doc/man-pages/pod8/bosserver.pod | 2 +- doc/man-pages/pod8/fileserver.pod | 1 - doc/man-pages/pod8/ptserver.pod | 2 +- doc/man-pages/pod8/vlserver.pod | 3 +-- doc/man-pages/pod8/volserver.pod | 3 +-- src/viced/host.c | 5 ++++- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/man-pages/pod8/bosserver.pod b/doc/man-pages/pod8/bosserver.pod index 3ff4345f3..5e7ca4261 100644 --- a/doc/man-pages/pod8/bosserver.pod +++ b/doc/man-pages/pod8/bosserver.pod @@ -8,7 +8,7 @@ bosserver - Initializes the BOS Server
B [B<-noauth>] [B<-log>] [B<-enable_peer_stats>] - [B<-enable_process_stats>] [B<-allow-dotted-principal>] [B<-help>] + [B<-enable_process_stats>] [B<-help>] =for html
diff --git a/doc/man-pages/pod8/fileserver.pod b/doc/man-pages/pod8/fileserver.pod index 50f346307..663e8c556 100644 --- a/doc/man-pages/pod8/fileserver.pod +++ b/doc/man-pages/pod8/fileserver.pod @@ -20,7 +20,6 @@ B S<<< [B<-auditlog> >] >>> S<<< [B<-busyat> n >>>] >>> [B<-nobusy>] S<<< [B<-rxpck> >] >>> [B<-rxdbg>] [B<-rxdbge>] S<<< [B<-rxmaxmtu> >] >>> - [B<-allow-dotted-principal>] S<<< [B<-rxbind> >] >>> S<<< [B<-vattachpar> >] >>> S<<< [B<-m> >] >>> diff --git a/doc/man-pages/pod8/ptserver.pod b/doc/man-pages/pod8/ptserver.pod index b5214d296..cfad4f54d 100644 --- a/doc/man-pages/pod8/ptserver.pod +++ b/doc/man-pages/pod8/ptserver.pod @@ -9,7 +9,7 @@ ptserver - Initializes the Protection Server B S<<< [B<-database> >] >>> S<<< [B<-p> >] >>> [B<-rebuildDB>] [B<-enable_peer_stats>] [B<-enable_process_stats>] - [B<-allow-dotted-principal>] [B<-help>] + [B<-help>] =for html diff --git a/doc/man-pages/pod8/vlserver.pod b/doc/man-pages/pod8/vlserver.pod index 9d1e893d4..3b5d804cd 100644 --- a/doc/man-pages/pod8/vlserver.pod +++ b/doc/man-pages/pod8/vlserver.pod @@ -8,8 +8,7 @@ vlserver - Initializes the Volume Location Server
B S<<< [B<-p> >] >>> [B<-nojumbo>] - [B<-allow-dotted-principal>] [B<-enable_peer_stats>] [B<-enable_process_stats>] - [B<-help>] + [B<-enable_peer_stats>] [B<-enable_process_stats>] [B<-help>] =for html
diff --git a/doc/man-pages/pod8/volserver.pod b/doc/man-pages/pod8/volserver.pod index 0fe488512..6992cf179 100644 --- a/doc/man-pages/pod8/volserver.pod +++ b/doc/man-pages/pod8/volserver.pod @@ -9,8 +9,7 @@ volserver - Initializes the Volume Server component of the fs process B [B<-log>] S<<< [B<-p> >] >>> S<<< [B<-udpsize> >] >>> - [B<-enable_peer_stats>] [B<-enable_process_stats>] - [B<-allow-dotted-principal>] [B<-help>] + [B<-enable_peer_stats>] [B<-enable_process_stats>] [B<-help>] =for html diff --git a/src/viced/host.c b/src/viced/host.c index bb80cdfc4..0e898988f 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1071,7 +1071,10 @@ h_Enumerate(int (*proc) (), char *param) if (!(held[count] = h_Held_r(host))) h_Hold_r(host); } - assert(count == hostCount); + if (count != hostCount) { + ViceLog(0, ("h_Enumerate found %d of %d hosts\n", count, hostCount)); + } + assert(count <= hostCount); H_UNLOCK; for (i = 0; i < count; i++) { held[i] = (*proc) (list[i], held[i], param); -- 2.39.5