DAFS: Wait until preattach to service FSSYNC reqs
authorAndrew Deason <adeason@sinenomine.net>
Wed, 30 Sep 2009 21:50:07 +0000 (16:50 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 1 Oct 2009 08:49:53 +0000 (01:49 -0700)
commit031f5eb528c94c1ad13fb1485db5cd40bc2877c2
treeb554de2e41c4a19c15bea9ef1639bbcbb3923a0f
parentd88c03492d1ea9a7533298977d8d6bec5e91ebcd
DAFS: Wait until preattach to service FSSYNC reqs

Make FSYNC_sync wait until VInit == 2 before serving FSSYNC requests.
This follows the existing similar behavior of waiting until after volume
preattachment is completed before serving RPC requests in DAFS. This
prevents FSSYNC clients from being denied requests simply due to a
volume not having been preattached yet, at the small cost of delaying
how soon we can serve FSSYNC requests.

This does not alter the behavior of non-DAFS, which still only waits
until VInit == 1, since volume attachment takes significantly longer
than preattachment.

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