--- /dev/null
+Index: src/viced//afsfileprocs.c
+===================================================================
+RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/viced/afsfileprocs.c,v
+retrieving revision 1.1.1.6
+diff -u -r1.1.1.6 afsfileprocs.c
+--- src/viced//afsfileprocs.c 14 Jul 2001 22:24:45 -0000 1.1.1.6
++++ src/viced//afsfileprocs.c 20 Jul 2001 09:56:14 -0000
+@@ -6403,16 +6403,16 @@
+ rc = IH_DEC(V_linkHandle(volptr), ino,
+ V_parentId(volptr));
+ if (!rc ) {
+- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
+- V_id(volptr), volptr->partition->name));
++ ViceLog(0,("CopyOnWrite failed: error %u after i_dec on disk full, volume %u in partition %s needs salvage\n",
++ rc, V_id(volptr), volptr->partition->name));
+ VTakeOffline (volptr);
+ }
+ free(buff);
+ return ENOSPC;
+ }
+ else {
+- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
+- V_id(volptr), volptr->partition->name));
++ 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));
+ /* Decrement this inode so salvager doesn't find it. */
+ FDH_REALLYCLOSE(newFdP);
+ IH_RELEASE(newH);
#include <afsconfig.h>
#include <afs/param.h>
-RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.1.1.6 2001/07/14 22:24:45 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/viced/afsfileprocs.c,v 1.2 2001/07/20 11:50:35 hartmans Exp $");
#include <stdio.h>
#include <stdlib.h>
rc = IH_DEC(V_linkHandle(volptr), ino,
V_parentId(volptr));
if (!rc ) {
- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
- V_id(volptr), volptr->partition->name));
+ ViceLog(0,("CopyOnWrite failed: error %u after i_dec on disk full, volume %u in partition %s needs salvage\n",
+ rc, V_id(volptr), volptr->partition->name));
VTakeOffline (volptr);
}
free(buff);
return ENOSPC;
}
else {
- ViceLog(0,("CopyOnWrite failed: volume %u in partition %s needs salvage\n",
- V_id(volptr), volptr->partition->name));
+ 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));
/* Decrement this inode so salvager doesn't find it. */
FDH_REALLYCLOSE(newFdP);
IH_RELEASE(newH);