From: Andrew Deason Date: Wed, 30 Nov 2011 23:21:32 +0000 (-0600) Subject: DAFS: Log more for VPreAttachVolumeByVp odd states X-Git-Tag: upstream/1.6.1.pre1^2~17 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c5f26e035b09c3bd8352f7b435b6ab3470e047c8;p=packages%2Fo%2Fopenafs.git DAFS: Log more for VPreAttachVolumeByVp odd states When we encounter "odd" states in VPreAttachVolumeByVp_r, say what the actual state we encountered was, along with the attach flags, so we have a better idea of what's going on. Reviewed-on: http://gerrit.openafs.org/6166 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 4fd8347e842af61681c1718e456500b92c5b6ea9) Change-Id: If1c6fdba7b097a4bfb9e8e3e972ee56dee43bf2d Reviewed-on: http://gerrit.openafs.org/6322 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/volume.c b/src/vol/volume.c index 0697e92bb..c38b86ec3 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -2151,7 +2151,8 @@ VPreAttachVolumeByVp_r(Error * ec, * - volume is in an error state * - volume is pre-attached */ - Log("VPreattachVolumeByVp_r: volume %u not in quiescent state\n", vid); + Log("VPreattachVolumeByVp_r: volume %u not in quiescent state (state %u flags 0x%x)\n", + vid, V_attachState(vp), V_attachFlags(vp)); goto done; } else if (vp) { /* we're re-attaching a volume; clear out some old state */