vputvnode-print-error-number-on-write-failure-20021104
authorDerrick Brashear <shadow@dementia.org>
Mon, 4 Nov 2002 20:15:38 +0000 (20:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 4 Nov 2002 20:15:38 +0000 (20:15 +0000)
make log message include error when taking volume offline

src/vol/vnode.c

index 3d1da2c..d385631 100644 (file)
@@ -746,9 +746,9 @@ VPutVnode_r(ec,vnp)
                            PrintInode(NULL, vp->vnodeIndex[class].handle->ih_ino));
                        *ec = VIO;
                    } else {
-                       Log("VPutVnode: Couldn't write vnode %d, volume %u (%s)\n",
+                       Log("VPutVnode: Couldn't write vnode %d, volume %u (%s) (error %d)\n",
                            vnp->vnodeNumber, V_id(vnp->volumePtr),
-                           V_name(vnp->volumePtr));
+                           V_name(vnp->volumePtr), code);
                        VForceOffline_r(vp);
                        *ec = VSALVAGE;
                    }