From c1d3a69976d7a6583a00176ff81dd66acb2cc07b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 26 Sep 2006 02:36:03 +0000 Subject: [PATCH] copyonwrite-dont-assert-20060925 take it offline, don't assert. --- src/viced/afsfileprocs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 6cc9d8ae6..098d7e812 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -1175,12 +1175,10 @@ 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")); -#elif defined(AFS_DEMAND_ATTACH_FS) +#if defined(AFS_DEMAND_ATTACH_FS) ViceLog(0, ("CopyOnWrite failed: requesting salvage\n")); -#else /* Avoid further corruption and try to get a core. */ - assert(0); +#else + ViceLog(0, ("CopyOnWrite failed: taking volume offline\n")); #endif /* Decrement this inode so salvager doesn't find it. */ FDH_REALLYCLOSE(newFdP); -- 2.39.5