]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DAFS: Add explicit 'valid' field for index maps
authorAndrew Deason <adeason@sinenomine.net>
Thu, 29 Sep 2011 20:22:35 +0000 (15:22 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 7 Oct 2011 17:33:28 +0000 (10:33 -0700)
commit2d1249ff41af03acc58d12709d6910313979cd43
tree43dc0346ad9a7d667e33e218ae8a59402d2373dc
parentaccf7824d2528894e791088326128dee85bc6a31
DAFS: Add explicit 'valid' field for index maps

The CB, FE, and host serialization structures were just using the
relevant indices to determine whether or not an entry mapping and old
index to a new index was populated with actual data. For host
structures, this really isn't sufficient, since our index can be 0,
and the structure is calloc'd, so the index in the structure could
also be 0.

Add a flag explicitly stating whether or not the structure has been
filled in, to make this unambiguous.

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

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