summaryrefslogtreecommitdiff
path: root/source4/torture/raw/oplock.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-21s4 torture: Add RAW-OPLOCK-EXCLUSIVE7 which is similar to BATCH19Tim Prouty1-0/+171
2009-12-21s4 torture: Update raw oplock to use win7 as the baseline for rename oplock ↵Tim Prouty1-13/+66
break behavior
2009-12-21s4 torture: Be more permissive with share modes for oplock testingTim Prouty1-2/+4
Share modes are tested elsewhere, and there is currently an outstanding issue about share mode contention for nt-passthrough levels: http://lists.samba.org/archive/cifs-protocol/2009-December/001227.html
2009-12-21s4 torture: Do a better job of closing open files in RAW-OPLOCK.Tim Prouty1-5/+4
2009-12-03s4 torture: Add a new RAW-OPLOCK test: BATCH26Tim Prouty1-0/+108
Try a rename with a wide-open share mode on an already open file and the there is still share mode contention. For the reason why see: http://social.msdn.microsoft.com/Forums/en-US/os_fileservices/thread/3ca14dc9-da1f-4786-a8f7-a86e9903db0c Msft's anser: After further review, The reason for server to fail with sharing violation is that the windows server that executes a path-based rename request opens the file for DELETE access, but only with FILE_SHARED_READ as ShareAccess . Therefore, the existing open(frame 76), which has shared read/write/delete , is compatible with the Windows servers access mode (DELETE), but Windows servers open is not compatible with access mode in existing open. Note that it is correct to state that the logic in Windows server could have been written to allow shared read/write/delete in which case it would succeed as you mention. The behavior here is historical based on the existing implementation.
2009-12-03s4 torture: Close the third handle in RAW-OPLOCK-BATCH22Tim Prouty1-2/+5
2009-12-03s4 torture: Convert an error to a warning in RAW-OPLOCK-BATCH22Tim Prouty1-12/+27
Some servers choose to mark a client as bad if they fail an oplock break request by timing out (win7 is an example). Once the client is marked as bad, future oplock requests will timeout instantly. This causes subsequent runs of this test to fail, so rather than erroring out as a failure, a warning is printed instead. There is also a bug in w2k3 where it was incorrectly returning contending a share mode lock. It worked in XP and has been re-fixed in win7. This can also now be run against samba3.
2009-12-03s4 torture: Convert to a more modern version of read in RAW-OPLOCK-BATCH4Tim Prouty1-5/+7
2009-12-03s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty1-7/+13
breaks
2009-12-01s4 torture: Change oplock to use passthrough for exclusive3/batch11Tim Prouty1-2/+2
In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended
2009-11-25s4 torture: Change RAW-OPLOCK to use the documented version of ↵Tim Prouty1-4/+4
SET_END_OF_FILE_INFO The passtrhough version of SET_END_OF_FILE_INFO is tested in RAW-SFILEINFO-END-OF-FILE. Additionally, the first opener is changed to use SHARE_WRITE for the share mode since SET_END_OF_FILE_INFO actually writes data to the file via truncating/extending.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-5/+0
This reduces compile time somewhat.
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell1-40/+40
In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
2009-10-01s4/torture: fix typo in test commentSteven Danneman1-1/+1
2009-09-29s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14Steven Danneman1-11/+12
We were pulling junk memory for our stream names after the reordering of the struct definition.
2009-09-29s4/torture: Allow receiving of oplock break requests in any orderSteven Danneman1-88/+159
Previously, the oplock torture tests, being single threaded, required the server to return oplock break requests, and other SMB packets in a specific order for us to verify "correctness". Of course, in several cases the protocol allows the break packets, especially breaks to levelII to come back in any order. With tevent we're now able to wait for oplock breaks in the middle of a torture test. I've added a helper to do this, and modified all oplock tests to allow returning of oplock breaks in any order.
2009-09-29s4/torture: convert printf to torture_comment()Aravind Srinivasan1-2/+4
Allows "make test" and other harnesses to print cleaner output.
2009-09-10s4/torture: don't mix declarations and codeAndrew Tridgell1-22/+22
2009-09-09s4/torture: add new SMB oplock testsAravind Srinivasan1-2/+397
* test if oplocks are granted when requesting delete-on-close * test how oplocks are broken by byte-range-lock requests
2009-09-09s4/torture: convert printf to torture_comment()Aravind Srinivasan1-6/+9
Allows "make test" and other harnesses to print cleaner output.
2009-04-01s4 torture: Add new streams oplock testTim Prouty1-0/+176
2009-02-10s4 torture: Change nttransrename to use a normal access maskTim Prouty1-1/+1
batch9 already tests for stat-only opens
2009-02-02s4:libcliraw: s/private/private_dataStefan Metzmacher1-1/+1
metze
2009-02-02s4:torture: s/private/private_dataStefan Metzmacher1-10/+10
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-2/+2
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-12-17Samba3 smbd now passes test BATCH23 (with the fix for bug #5979), only ↵Jeremy Allison1-4/+0
BATCH22 left to fix. Jeremy.
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-1/+2
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-11-02Fix the build.Jelmer Vernooij1-1/+1
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij1-1/+2
2008-10-14Add the oplock-batch25 test showing that a writeattr does not break an oplockVolker Lendecke1-0/+70
Probably that's already somewhere else, but I did not find it.
2008-09-30Cope with API changes.Jelmer Vernooij1-2/+3
2008-04-16Avoid event_find_context when a event context is already available.Jelmer Vernooij1-2/+1
(This used to be commit 4ca264679ecfd938c538a93f4efff1bfa23c3744)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-03-18smbtorture: fix typos in RAW-OPLOCK output.Michael Adam1-2/+2
Michael (This used to be commit 9fa4b53b61064c910b8f5c9c676c971023b8670c)
2008-03-12RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!Stefan Metzmacher1-15/+50
metze (This used to be commit cd1b8efc5d8dc1eec03fe1bf1eb58dbded9584eb)
2008-03-11Added test_nttransrename() to test Metze's new code.Jeremy Allison1-0/+89
Jeremy. (This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)
2008-03-11Samba3.2 now passes a lot more tests - remove the S3 specificJeremy Allison1-67/+32
exemptions. Jeremy. (This used to be commit a70719d579a7eefbfd973267b95a87aaa6b649b0)
2008-03-11Samba3 now passes the test_raw_oplock_exclusive3 test.Jeremy Allison1-8/+2
Jeremy. (This used to be commit b2007956aa4534f22ad7fd85b0aee0be769548ae)
2008-03-11Test trans2 renames with oplocks. It looks like trans2 renamesJeremy Allison1-0/+106
ignore share modes and oplock breaks :-(. Jeremy. (This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
2008-03-06RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()Stefan Metzmacher1-61/+75
Also improve the output. metze (This used to be commit d0b641a9ee36939468beb427bf6b15892342a33d)
2008-03-06RAW-OPLOCK: add BATCH24 test another case with a connection with no ↵Stefan Metzmacher1-0/+77
CAP_LEVEL_II_OPLOCKS metze (This used to be commit 4fb2c9fb1f4e3ee23281ca83f8b91d252cbf53c7)
2008-03-06RAW-OPLOCK: add BATCH23 and test with a connection with no CAP_LEVEL_II_OPLOCKSStefan Metzmacher1-0/+121
metze (This used to be commit 2192d6d2bda2afd2ba1ed0cb68bdfe590b9d50af)
2008-03-06RAW-OPLOCK: remove unused varsStefan Metzmacher1-3/+0
metze (This used to be commit 0905f3ebd1cb1ac9cefc4272208add9e5a8d7f59)
2008-03-04RAW-OPLOCK: add BATCH22 and test the behavior of oplock break timeoutsStefan Metzmacher1-0/+118
metze (This used to be commit c459885898c9912df1ae5afff4fef2ff809dc15e)
2008-03-04RAW-OPLOCK: add BATCH21: a self write with an oplock doesn't break itStefan Metzmacher1-0/+70
metze (This used to be commit a5476ee41c140123db160b2e36c8c7084619a738)
2008-02-27RAW-OPLOCK: be more strict with share modes against windows and samba4Stefan Metzmacher1-19/+32
But still allow samba3 behavior. metze (This used to be commit a0decdf63e2f7ef6ee62a3fda5070b2fccee5682)
2008-02-27RAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file workStefan Metzmacher1-2/+2
metze (This used to be commit 656011add338ab87188849c4a716d3c65a102a74)
2008-02-27RAW-OPLOCK: add BATCH20 test renaming via setpathinfo() and setfileinfo()Stefan Metzmacher1-0/+135
metze (This used to be commit b66c246c5db78db897bcf21a6ea3c777d65cfc6a)
2008-02-27RAW-OPLOCK: add BATCH19 test renaming via setpathinfoStefan Metzmacher1-0/+112
This is really strange as, it seems to complete ignore oplocks and share modes and doesn't match the behavior of RENAME and NTRENAME. metze (This used to be commit 7bac95db5edcc7432aea067e0a9ba9230c7dc1b0)
2008-02-27RAW-OPLOCK: add BATCH18 test a ntrename with FLAG_RENAMEStefan Metzmacher1-0/+75
metze (This used to be commit 22c35d9ee7858c0ff58d5d0b4a9bf69fe0b8653f)