]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DAFS: Skip hosts with invalid flags on restore
authorAndrew Deason <adeason@sinenomine.net>
Thu, 29 Sep 2011 21:04:54 +0000 (16:04 -0500)
committerDerrick Brashear <shadow@dementix.org>
Sun, 9 Oct 2011 17:21:28 +0000 (10:21 -0700)
commit9378144f94425df4abbe818ae93b3eb06c49b43c
treef6182d492a133acf771fa0bbb200fbc1c8a94c32
parent855d3fbcde486640ba60fcce283cebb4bbdafe98
DAFS: Skip hosts with invalid flags on restore

Host entries with HWHO_INPROGRESS set or ALTADDR unset do not have
valid state, since those flags indicate that the fileserver was in the
middle of identifying the host when the host struct was serialized.
Skip entries from the on-disk host data that have such invalid flags
set when restoring state, so we do not load invalid data.

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

Change-Id: Ifa69ec30bda8f9ba162954d39f9b60d9fc630289
Reviewed-on: http://gerrit.openafs.org/5545
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/tviced/serialize_state.h
src/viced/callback.c
src/viced/host.c