mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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 <adeason@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9bb6b06c76
commit
3f0c08ad93
@ -1008,8 +1008,8 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log("FSYNC_com_VolOff: failed to get heavyweight reference to volume %u\n",
|
Log("FSYNC_com_VolOff: failed to get heavyweight reference to volume %u (state=%u, flags=0x%x)\n",
|
||||||
vcom->vop->volume);
|
vcom->vop->volume, V_attachState(vp), V_attachFlags(vp));
|
||||||
res->hdr.reason = FSYNC_VOL_PKG_ERROR;
|
res->hdr.reason = FSYNC_VOL_PKG_ERROR;
|
||||||
goto deny;
|
goto deny;
|
||||||
} else if (nvp != vp) {
|
} else if (nvp != vp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user