]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Clear VHardMount on ResetVolumeInfo
authorAndrew Deason <adeason@sinenomine.net>
Wed, 14 Dec 2011 20:42:08 +0000 (14:42 -0600)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 19:13:24 +0000 (11:13 -0800)
commitf469be407789e696c0b9e9a431b4879798a00e2a
treed3bf4ae9629ab0de1366a1d25601bebc263e2ce9
parentda3f8d86dd216a90bc400367b7b95e9a427f99e8
afs: Clear VHardMount on ResetVolumeInfo

afs_Analyze sets VHardMount on a volume struct when a hard-mount
scenario is encountered, and clears it after sleeping. However, if the
volume struct has VRecheck set, or if it's not in memory, afs_Analyze
cannot retrieve the volume struct in order to clear VHardMount again.

For the VRecheck case, this can results in VHardMount never getting
cleared, and so hard-mount messages for the volume seem to disappear.
So, clear VHardMount when we set VRecheck so this does not occur.

For the case where the volume struct is not in memory, this is not a
problem, since when we allocate a volume struct again, the VHardMount
state will not be retained.

Change-Id: I607741241e330391b8c857b2a72f0e0cfc0b91cc
Reviewed-on: http://gerrit.openafs.org/6335
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_volume.c