OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

Sat, 21 Jan 2006 15:56:26 EST

Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd

Modified Files:
	cm_daemon.c smb.c smb.h smb3.c 
Log Message:
DELTA windows-smb-logoff-or-abandonment-detection-20060121

This patch:

(1) removes the rest of the dead logoff code that was originally 
    stripped of any meaning by DELTA 

(2) gives new meaning to smb_TokenTransfer and smb_TokenTransferTimeout.
    these variables now control how long a smb_username_t and its 
    associated cm_user_t and its cm_cellinfo_t (including tokens)
    will be preserved after a logoff.

(3) adds logic to detect logoff conditions

(4) adds cm_CheckVCs().  This function probes the SMB client with a ECHO
    response to determine if the associated SMB virtual circuit is still
    valid.   This is executed once every five minutes by smb_Daemon()
    and whenever the machine's IP addresses change.  This allows 
    abandoned VCs to be detected and the associated user credentials,
    file handles, and locks to be cleaned up.  This will also prevent
    the exhaustion of the limited number of SMB sessions. 

--- DELTA config follows ---
windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/cm_daemon.c 1.15 1.16
windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.c 1.102 1.103
windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.h 1.34 1.35
windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb3.c 1.86 1.87