]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
as edited by shadow@dementia.org
authorNathan Neulinger <nneul@umr.edu>
Thu, 14 Nov 2002 20:18:07 +0000 (20:18 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Thu, 14 Nov 2002 20:18:07 +0000 (20:18 +0000)
(cherry picked from commit 729ec68bf6c2d51d8738524149dba613fce9094f)

src/viced/afsfileprocs.c

index fe272124859092727d497634fa6b09ca6737601c..df4d7faf508b6108d297edfda68da9ac1bfd5479 100644 (file)
@@ -6606,7 +6606,11 @@ int CopyOnWrite(targetptr, volptr)
                    ViceLog(0,("CopyOnWrite failed: volume %u in partition %s  (tried reading %u, read %u, wrote %u, errno %u) volume needs salvage\n",
                               V_id(volptr), volptr->partition->name, length,
                               rdlen, wrlen, errno));
-                   assert(0);
+#ifdef FAST_RESTART /* if running in no-salvage, don't core the server */
+                   ViceLog(0,("CopyOnWrite failed: taking volume offline\n"));
+#else /* Avoid further corruption and try to get a core. */
+                   assert(0); 
+#endif
                     /* Decrement this inode so salvager doesn't find it. */
                    FDH_REALLYCLOSE(newFdP);
                    IH_RELEASE(newH);