openafs/src/tviced
Andrew Deason 5c6bd04211 DAFS: Do not serialize state for invalid hosts
When we serialize host information for DAFS during shutdown, we have
no guarantee that the host is in a valid state when we look at it.
This can result in a host being saved to disk when we are waiting for
the host to respond to an RPC, and so the information about the host
is invalid. For example, we can save a host that has the
HWHO_INPROGRESS flag set, and when it is restored later, this can
cause odd behavior since the flag is set but no thread is actually
waiting for the host to respond.

So instead, during state serialization, try to determine if a host may
be in an invalid state, and simply skip the host if it may.

Change-Id: I755640ea4ce607245ae98cc7455472ef781271e7
Reviewed-on: http://gerrit.openafs.org/5528
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
2011-09-30 16:56:44 -07:00
..
.gitignore gitignore-20090615 2009-06-15 23:29:29 +00:00
fileserver.rc demand attach build always 2010-07-13 21:22:30 -07:00
Makefile.in Clean up assertion 2011-09-25 21:10:11 -07:00
NTMakefile Move string manipulation functions out of util 2011-09-11 05:38:55 -07:00
serialize_state.c DAFS: Do not serialize state for invalid hosts 2011-09-30 16:56:44 -07:00
serialize_state.h DAFS: Skip hosts with invalid flags on restore 2011-09-30 16:52:24 -07:00
state_analyzer.c Clean up assertion 2011-09-25 21:10:11 -07:00