]> git.michaelhowe.org Git - packages/o/openafs.git/commit
dasalvager: unlink fsstate.dat when standalone
authorAndrew Deason <adeason@sinenomine.net>
Fri, 6 May 2011 18:12:17 +0000 (13:12 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 May 2011 14:45:43 +0000 (07:45 -0700)
commit699c407bfbf0fad2667b231a1e73cdf1a0aec7b0
treeba8540d315137dafcb7188275bf111c08890d51c
parent99149b9837ae09d1621111075e3bf8f5bac9b6c2
dasalvager: unlink fsstate.dat when standalone

If the DAFS salvager is running in a standalone mode, unlink the
fileserver's fsstate.dat file if any volumes change. Otherwise, volume
data could have changed and the fileserver will retain callback
promises for the data in those volumes until it tries to attach the
volume. This way, callbacks are broken via callback state
reinitialization.

A better solution is to record which volumes have changed, and the
fileserver can break callbacks for them on startup. But this at least
eliminates a regression from non-DAFS behavior.

Reviewed-on: http://gerrit.openafs.org/4638
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 38efda16a2c5c9e74b5a23b5bdd2818a3353eec2)

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