salvager: Implement AskDAFS via SYNC flags
authorAndrew Deason <adeason@sinenomine.net>
Thu, 3 Nov 2011 18:17:33 +0000 (13:17 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sat, 5 Nov 2011 17:45:28 +0000 (10:45 -0700)
commit7fee28bae30c5a65898a2e3fd7149f07e8ca0df6
tree456478bfc06191f18fa0a4320badacf72fe847fa
parent47b010d1e1d0e8bdbbcad73d5aedc19719d5d96a
salvager: Implement AskDAFS via SYNC flags

Instead of probing the DAFS-ness of the fileserver by probing which
FSSYNC opcodes it supports, detect DAFS-ness by looking at the SYNC
response header flags, which explicitly state whether or not the
endpoint is DAFS. This avoids unnecessary "protocol mismatch" log
messages when the endpoint is not DAFS.

Change-Id: Ie05a587951d6d5f69ae03cf3749f8c53e1eb6b62
Reviewed-on: http://gerrit.openafs.org/5800
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/vol-salvage.c