DAFS: Log more for VPreAttachVolumeByVp odd states
authorAndrew Deason <adeason@sinenomine.net>
Wed, 30 Nov 2011 23:21:32 +0000 (17:21 -0600)
committerDerrick Brashear <shadow@dementix.org>
Sat, 3 Dec 2011 14:14:22 +0000 (06:14 -0800)
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.

Change-Id: Ic5d07d249db7b51301b3ac903ba987cfa21922ee
Reviewed-on: http://gerrit.openafs.org/6166
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/vol/volume.c

index 0a32c81..8d1cdfc 100644 (file)
@@ -2149,7 +2149,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 */