libafs: afs_InitVolSlot function
authorMichael Meffie <mmeffie@sinenomine.net>
Sat, 8 Mar 2014 16:41:26 +0000 (11:41 -0500)
committerD Brashear <shadow@your-file-system.com>
Tue, 25 Mar 2014 16:48:11 +0000 (09:48 -0700)
commit75e3a5897405eeeba047cca1103ac32ccfaa03dc
tree0ab868ed5cbce6aafa0fde2b2cabc51774a55aac
parentbe36376b244d1d94b24cb8fce44810fb31b7b5ce
libafs: afs_InitVolSlot function

Add a new local function to initialize newly gotten volume slots and
move that code out of afs_SetupVolume().  Initialize the slot before
putting the volume in the volume hash table list.

Make it more clear to avoid using record 0. The volume items record 0 is
not used, so avoid setting the tf pointer to the static fvolume buffer
when reading record 0.

Change-Id: Iffba52fbf8d72459c9a36015964e61d485f22ad4
Reviewed-on: http://gerrit.openafs.org/10877
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/afs/afs_stats.h
src/afs/afs_volume.c