windows-lock-data-versions-20060112
authorAsanka Herath <asanka@secure-endpoints.com>
Thu, 12 Jan 2006 18:45:16 +0000 (18:45 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 12 Jan 2006 18:45:16 +0000 (18:45 +0000)
commit6cf662ca526cb9cbb9b93511008ab274834f6396
tree34ff2485604ea84b553e330d8ca3ac8dbd1b307a
parentaf202cac551ad541a0a1ca4525b03c2ec05f6507
windows-lock-data-versions-20060112

Add a lockDataVersion field to cm_scache_t.  This data version is
compared to the cm_scache_t dataVersion field in the following
circumstances:

 * lock upgrades from read to write in which the lock must be released
   given current file server rpcs

 * lock downgrades from write to read in which the lock must be released
   given current file server rpcs

 * lost locks due to network disconnect.  if the data version has not
   changed then re-obtaining the lock is safe to do
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_scache.h
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/smb.c