DAFS: Do not record vol ops for DELETED vols
authorAndrew Deason <adeason@sinenomine.net>
Wed, 23 Mar 2011 21:46:47 +0000 (16:46 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 24 Mar 2011 16:22:01 +0000 (09:22 -0700)
commitdba991728ba5a90af316928348053189dac80398
tree08fed30e73df19ea4816eef871c76495e06683d8
parentf2c1f2ee48663d00701e7cee52b99151e36b9534
DAFS: Do not record vol ops for DELETED vols

When a volume is VOL_STATE_DELETED, it effectively does not exist, so
there is little point in recording a vp->pending_vol_op structure for
it. Just let callers checkout the volume as they would a nonexistent
volume: without recording anything about the operation.

This just reduces some edge cases and confusing debugging info, so we
don't have to worry about cleaning up pending_vol_op structures for
nonexistent volumes.

Change-Id: I56b92c3f2548ea48f9c61100be07edf9f7277fee
Reviewed-on: http://gerrit.openafs.org/4296
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/fssync-server.c