From 729ec68bf6c2d51d8738524149dba613fce9094f Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Mon, 30 Sep 2002 20:21:40 +0000 Subject: [PATCH] handle-cow-differently-if-volume-wont-be-salvaged-20020930 as edited by shadow@dementia.org --- src/viced/afsfileprocs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 0677e804f..89a809bc1 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -6714,7 +6714,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); -- 2.39.5