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

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

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 for openafs-stable-1_4_x follows ---
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/cm_daemon.c
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.c
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb.h
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121 openafs/src/WINNT/afsd/smb3.c