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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 11 Dec 2006 23:00:41 EST


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

Modified Files:
	afsd_service.c cm_callback.c cm_daemon.c cm_vnodeops.c 
	cm_vnodeops.h rawops.c smb.c smb.h smb3.c smb3.h smb_ioctl.h 
Log Message:
DELTA windows-afsd-20061211
AUTHOR jaltman@secure-endpoints.com

(1) Power Management improvements.  Maintain a global flag that 
    specifies whether or not the service is in a suspend state.
    Do not panic if Netbios() returns NRC_BRIDGE meaning that the
    lana is no longer valid.  Instead, stop the listener threads
    and if all listener threads are stopped, reset the lana_list.
    Allow the cm_Daemon() thread to periodically check the state
    of the smb listeners.  If they are all stopped and the service
    is not suspended, attempt to restart them.  If there are no valid
    lanas, return to the stopped state.

(2) CreateX and NTCreateX use cm_CheckNTOpen() to test whether or not
    the user is permitted to obtain read or write locks.  This function
    would obtain the lock and then drop it returning whether or not 
    the lock could be obtained.  If the lock was in fact required,
    CreateX/NTCreateX would then obtain it with cm_Lock().  The problem
    of course being that this pattern results in three RPCs to the 
    file server (lock, unlock, lock).  This is reduced to one RPC by
    implementing cm_CheckNTOpenDone() which frees the allocated byte
    range lock from cm_CheckNTOpen() after the cm_Lock() call is 
    performed.

(3) Remove unused code.

(4) Add debugging to SMB Directory Search functions.

(5) Increase the SMB Ioctl MaxData size



--- DELTA config follows ---
windows-afsd-20061211 openafs/src/WINNT/afsd/afsd_service.c 1.60 1.61
windows-afsd-20061211 openafs/src/WINNT/afsd/cm_callback.c 1.51 1.52
windows-afsd-20061211 openafs/src/WINNT/afsd/cm_daemon.c 1.24 1.25
windows-afsd-20061211 openafs/src/WINNT/afsd/cm_vnodeops.c 1.87 1.88
windows-afsd-20061211 openafs/src/WINNT/afsd/cm_vnodeops.h 1.16 1.17
windows-afsd-20061211 openafs/src/WINNT/afsd/rawops.c 1.4 1.5
windows-afsd-20061211 openafs/src/WINNT/afsd/smb.c 1.145 1.146
windows-afsd-20061211 openafs/src/WINNT/afsd/smb.h 1.52 1.53
windows-afsd-20061211 openafs/src/WINNT/afsd/smb3.c 1.119 1.120
windows-afsd-20061211 openafs/src/WINNT/afsd/smb3.h 1.17 1.18
windows-afsd-20061211 openafs/src/WINNT/afsd/smb_ioctl.h 1.6 1.7