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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sat, 21 Jan 2006 15:58:41 EST


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

Modified Files:
      Tag: openafs-stable-1_4_x
	cm_daemon.c smb.c smb.h smb3.c 
Log Message:
DELTA STABLE14-windows-smb-logoff-or-abandonment-detection-20060121
AUTHOR jaltman@secure-endpoints.com

This patch:

(1) removes the rest of the dead logoff code that was originally
    stripped of any meaning by DELTA
    winnt-win2000-win98-afs-client-updates-20010623.

(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 for openafs-stable-1_4_x follows ---
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/cm_daemon.c 1.4.2.9 1.4.2.10
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.c 1.55.2.37 1.55.2.38
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.h 1.14.2.18 1.14.2.19
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb3.c 1.42.2.39 1.42.2.40