]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-copyonwrite-dont-assert-20060925
authorDerrick Brashear <shadow@dementia.org>
Tue, 26 Sep 2006 03:13:17 +0000 (03:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Sep 2006 03:13:17 +0000 (03:13 +0000)
take it offline, don't assert.

(cherry picked from commit c1d3a69976d7a6583a00176ff81dd66acb2cc07b)

src/viced/afsfileprocs.c

index 0fda3353fac91a214e854c4980cbff0e76e15c6f..f369cb5d61700d483747cc0bc225ca75f6e1bee5 100644 (file)
@@ -1213,11 +1213,7 @@ CopyOnWrite(Vnode * targetptr, Volume * volptr)
                        ("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));
-#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);