]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-cm_volume-recycling-20060825
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 25 Aug 2006 16:27:39 +0000 (16:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 25 Aug 2006 16:27:39 +0000 (16:27 +0000)
do not panic if we reach maxVolumes and there is a volume entry that
can be recycled.

(cherry picked from commit 375a79f2a02ff2c16f9fcc54dba2b51e41b51c05)

src/WINNT/afsd/cm_volume.c

index 83bd7a517d36ab802a58d70d413e79c3cb1196e6..a7b8aad1c193e6f9f7e406eb6d48598ea9f31321 100644 (file)
@@ -435,7 +435,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) {