vputvnode-print-error-number-on-write-failure-20021104

make log message include error when taking volume offline
This commit is contained in:
Derrick Brashear 2002-11-04 20:15:38 +00:00
parent 038d4a0e8e
commit 3a7d53e8bd

View File

@ -746,9 +746,9 @@ VPutVnode_r(ec,vnp)
PrintInode(NULL, vp->vnodeIndex[class].handle->ih_ino)); PrintInode(NULL, vp->vnodeIndex[class].handle->ih_ino));
*ec = VIO; *ec = VIO;
} else { } 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), vnp->vnodeNumber, V_id(vnp->volumePtr),
V_name(vnp->volumePtr)); V_name(vnp->volumePtr), code);
VForceOffline_r(vp); VForceOffline_r(vp);
*ec = VSALVAGE; *ec = VSALVAGE;
} }