windows-cm_volume-recycling-20060825
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 25 Aug 2006 16:23:51 +0000 (16:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 25 Aug 2006 16:23:51 +0000 (16:23 +0000)
do not panic if we reach maxVolumes and there is a volume entry that
can be recycled.

src/WINNT/afsd/cm_volume.c

index 6f88515..7c9959b 100644 (file)
@@ -431,7 +431,8 @@ long cm_GetVolumeByName(struct cm_cell *cellp, char *volumeNamep,
                         break;
                     }
                 }
-                osi_panic("Exceeded Max Volumes", __FILE__, __LINE__);
+               if (!volp)
+                   osi_panic("Exceeded Max Volumes", __FILE__, __LINE__);
             }
 
             if (volp) {