From: Derrick Brashear Date: Tue, 26 Sep 2006 03:13:17 +0000 (+0000) Subject: STABLE14-copyonwrite-dont-assert-20060925 X-Git-Tag: openafs-stable-1_4_2~38 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1c0f071de62b1e4b88ba0cfd9d443d251860efd7;p=packages%2Fo%2Fopenafs.git STABLE14-copyonwrite-dont-assert-20060925 take it offline, don't assert. (cherry picked from commit c1d3a69976d7a6583a00176ff81dd66acb2cc07b) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 0fda3353f..f369cb5d6 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -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);