windows-linked-cells-20081103
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Nov 2008 19:55:38 +0000 (19:55 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 3 Nov 2008 19:55:38 +0000 (19:55 +0000)
commit70fda445bd0fb8bd3e246e859b4582170ea271eb
treec9c285a0938a44faccca7e3f98122b5792a2af39
parent303c70efd4cb54ad673bed5a0c438670ae2b97ad
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.
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