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>
Fri, 30 Sep 2011 23:52:24 +0000 (16:52 -0700)
commit6e7b31ef0a69b8ea39e8acc474a7aab48f828d3d
tree8072a914b2d12717d74f6bbe5cc0a5a7c5ed9a8f
parentd54a9994d362ce3f287fe786839ec72f6d94806c
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.

Change-Id: I26b88256679f4596598e6e3e6b68af7e8e5e387d
Reviewed-on: http://gerrit.openafs.org/5527
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