summaryrefslogtreecommitdiff
path: root/source4/torture/raw/oplock.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2008-02-27RAW-OPLOCK: add BATCH17 test rename on a file with oplockStefan Metzmacher1-0/+75
metze (This used to be commit 32f138d4b313a6c5e8ef8e15945df02e3b4db864)
2008-02-27RAW-OPLOCK: add EXCLISIVE6 test a rename on a file with an oplockStefan Metzmacher1-0/+72
metze (This used to be commit 3886a5dea2fa26eeed8bc1d20c44ef012ea1f746)
2008-02-27RAW-OPLOCK: add EXCLUSIVE5 to test attribute only with OVERWRITE_IFStefan Metzmacher1-0/+72
metze (This used to be commit 06547036e6554dc94f683263b54d528eac227ea8)
2008-02-27RAW-OPLOCK: add BATCH16 and tests attribute only with OVERWRITE_IFStefan Metzmacher1-0/+79
metze (This used to be commit 2453628623795c34ece18a285e6c2de40c4518de)
2008-02-27RAW-OPLOCK: add EXCLUSIVE4 a attribute only open doesn't break an exclusive ↵Stefan Metzmacher1-0/+65
oplock metze (This used to be commit b22587a5db4a1e2d5fa1a944896330f1a86eef11)
2008-02-27RAW-OPLOCK: add EXCLUSIVE3Stefan Metzmacher1-0/+69
This tests that a setpathinfo EOF breaks an exclusive oplock to none. metze (This used to be commit fd5b4b3d4ec52572619dba065d689d58bec71ae0)
2008-02-27RAW-OPLOCK: add EXCLUSIVE2Stefan Metzmacher1-0/+95
Exclusive oplocks break to LEVEL2 metze (This used to be commit 1cddadb052106394046f03d65297ea68232e7492)
2008-02-27RAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)Stefan Metzmacher1-4/+4
metze (This used to be commit 546536dde07d82dbba6724df95cdd1ba50caf8c5)
2008-02-26RAW-OPLOCK: BATCH15: make sure a qpathinfo doesn't break batch oplocksStefan Metzmacher1-0/+74
metze (This used to be commit 4d17d44d3f418216a40c80f290f97a4dc29147b0)
2008-02-25RAW-OPLOCK: remove unused varStefan Metzmacher1-2/+1
(This used to be commit 6820da44828172769d9fdfa161acf762e3937a88)
2008-02-25RAW-OPLOCK: fix typo (send oplock releases on the correct connection)Stefan Metzmacher1-1/+1
metze (This used to be commit f6ecf59c7555917374fc9e5430034815fd4cd245)