DAFS: Put back volumes we get in FSSYNC handlers openafs-devel-1_5_64
authorAndrew Deason <adeason@sinenomine.net>
Mon, 21 Sep 2009 16:09:56 +0000 (11:09 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 21 Sep 2009 16:44:37 +0000 (09:44 -0700)
commit759c756b0fa51b774e3894d5f9a5029955232612
treeec66bdf1d00bf76e1e6d5ab58c884f9e5d13b0c3
parent1542d943df24de94e4b61e0303db542f0e2c982d
DAFS: Put back volumes we get in FSSYNC handlers

fssync-server.c has a few issues with not properly VPutVolume_r'ing
volumes that were VGetVolume_r'd. The most important of these was that
the handler for FSYNC_VOL_MOVE can put back a volume it did not get,
when DAFS is enabled.

Fix that, and another erroneous edge case in the FSYNC_VOL_QUERY_HDR
handler when DAFS is not enabled.

Reviewed-on: http://gerrit.openafs.org/477
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/fssync-server.c