Author: vlendec Date: 2005-08-03 06:28:18 +0000 (Wed, 03 Aug 2005) New Revision: 8993
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8993 Log: No-oplock opens don't conflict with level2 oplocks at open time, an exclusive oplock request grants level2 when there's no-oplock opens around. The previous code informed all non-oplock opens when a level2 was granted, so the level2 could be informed upon change. Jeremy had the idea that we internally grant level2 even if the client does not request an oplock, we just don't tell the client. This simplifies the code even further. I wonder how simple this can get.... Jeremy, please take a look at it quite closely, it's after 11pm right now. Thanks, Volker Modified: trunk/source/include/messages.h trunk/source/include/smb.h trunk/source/locking/locking.c trunk/source/smbd/files.c trunk/source/smbd/nttrans.c trunk/source/smbd/open.c trunk/source/smbd/oplock.c Changeset: Sorry, the patch is too large (458 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8993