svn commit: samba r3029 - in branches/SAMBA_4_0/source: include
lib/messaging ntvfs/common ntvfs/posix torture/basic torture/raw
tridge at samba.org
tridge at samba.org
Mon Oct 18 07:40:20 GMT 2004
Author: tridge
Date: 2004-10-18 07:40:17 +0000 (Mon, 18 Oct 2004)
New Revision: 3029
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3029&nolog=1
Log:
implemented byte range lock timeouts.
This adds a pvfs_wait_message() routine which uses the new messaging
system, event timers and talloc destructors to give a nice generic
async event handling system with a easy to use interface. The
extensions to pvfs_lock.c are based on calls to pvfs_wait_message()
routines.
We now pass all of our smbtorture locking tests, although while
writing this code I have thought of some additonal tests that should
be added, particularly for lock cancel operations. I'll work on that
soon.
This commit also extends the smbtorture lock tests to test the rather
weird 0xEEFFFFFF locking semantics that I have discovered in
win2003. Win2003 treats the 0xEEFFFFFF boundary as special, and will
give different error codes on either side of it. Locks on both sides
are allowed, the only difference is which error code is given when a
lock is denied. Anyone like to hazard a guess as to why? It has
me stumped.
Added:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c
Modified:
branches/SAMBA_4_0/source/include/messages.h
branches/SAMBA_4_0/source/include/smb.h
branches/SAMBA_4_0/source/lib/messaging/messaging.c
branches/SAMBA_4_0/source/ntvfs/common/brlock.c
branches/SAMBA_4_0/source/ntvfs/posix/config.mk
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
branches/SAMBA_4_0/source/torture/basic/locking.c
branches/SAMBA_4_0/source/torture/raw/lock.c
Changeset:
Sorry, the patch is too large (1190 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3029&nolog=1
More information about the samba-cvs
mailing list