]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-linked-cells-20081103
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Nov 2008 19:56:03 +0000 (19:56 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Nov 2008 19:56:03 +0000 (19:56 +0000)
commita1fd3da2366593a35d0605214482172d57347410
tree6dfbdce192aeae59629b610e6d3ab1573fce4880
parentbf2f87ef6f41453453ad135c9bd630ec6329a317
DEVEL15-windows-linked-cells-20081103

LICENSE MIT
FIXES 123571

The Windows code base was implemented ignorant of linked cells as
defined in the src/auth/cellconfig.h struct afsconf_cell.  The code
that made use of the afsconf_cell objects would leak the memory from
the linkedCell field if is non-NULL.

Add cm_SearchCellFileEx which is an extended version of cm_SearchCellFile
capable of returning a linked cell obtained from the CellServDB file.

Update GetCellConfig to populate the linkedCell field of the afsconf_cell
structure.

Modify cm_cell_t to support a linked cell name.

Modify cm_GetCell_Gen() to populate the cm_cell_t linked cell and enforce
that two cells are linked to each other.

Modify cm_GetVolumeByID() and cm_GetVolumeByName() to perform fallback
to the linked cell if the response is CM_ERROR_NOSUCHVOLUME.

(cherry picked from commit 70fda445bd0fb8bd3e246e859b4582170ea271eb)
12 files changed:
src/WINNT/afsd/afskfw.c
src/WINNT/afsd/cm_cell.c
src/WINNT/afsd/cm_cell.h
src/WINNT/afsd/cm_config.c
src/WINNT/afsd/cm_config.h
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_volume.c
src/WINNT/afsd/cm_volume.h
src/WINNT/afsd/fs.c
src/WINNT/afsd/libafsconf.def
src/WINNT/client_creds/ipaddrchg.c
src/WINNT/netidmgr_plugin/afsfuncs.c