From 3f0c08ad93bf98fbe64d5714649d675712410cc9 Mon Sep 17 00:00:00 2001 From: Tom Keiser Date: Wed, 13 Oct 2010 01:16:25 -0400 Subject: [PATCH] provide more verbose logging when VGetVolumeByVp_r fails FSYNC_com_VolOff() commits sepuku when VGetVolumeByVp_r() fails to return a heavyweight ref to the volume. This small patch provides more detailed debugging information so we have a better idea why VGetVolumeByVp_r failed. Change-Id: I9b8b6e734653701c4f35b458f4c4701a2b0d2d5e Reviewed-on: http://gerrit.openafs.org/2969 Reviewed-by: Andrew Deason Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/vol/fssync-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vol/fssync-server.c b/src/vol/fssync-server.c index 56bac3c045..d7bc0c846d 100644 --- a/src/vol/fssync-server.c +++ b/src/vol/fssync-server.c @@ -1008,8 +1008,8 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res) break; } - Log("FSYNC_com_VolOff: failed to get heavyweight reference to volume %u\n", - vcom->vop->volume); + Log("FSYNC_com_VolOff: failed to get heavyweight reference to volume %u (state=%u, flags=0x%x)\n", + vcom->vop->volume, V_attachState(vp), V_attachFlags(vp)); res->hdr.reason = FSYNC_VOL_PKG_ERROR; goto deny; } else if (nvp != vp) {