]> 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>
Sat, 17 Dec 2011 00:31:48 +0000 (16:31 -0800)
commitf8818eb569d1da05a157f31bbcc927e028372a33
tree1f67ff7b3f57916c124e36d213acda73cb6020d1
parent09fe35b1f3adfd08aa74377d291a4acd638d247b
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.

Reviewed-on: http://gerrit.openafs.org/6335
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit f469be407789e696c0b9e9a431b4879798a00e2a)

Change-Id: If13769445f20336dfba9755f3af0a1499ce16a6d
Reviewed-on: http://gerrit.openafs.org/6348
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_volume.c