1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

98 Commits

Author SHA1 Message Date
Steven Danneman
49fdeaeaf6 s4/torture: fix typo in test comment 2009-10-01 14:59:52 -07:00
Steven Danneman
9af9dbeaf3 s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14
We were pulling junk memory for our stream names after the reordering
of the struct definition.
2009-09-29 19:25:48 -07:00
Steven Danneman
8c0d239317 s4/torture: Allow receiving of oplock break requests in any order
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-29 19:04:36 -07:00
Aravind Srinivasan
6e4bf59d80 s4/torture: convert printf to torture_comment()
Allows "make test" and other harnesses to print cleaner output.
2009-09-29 19:04:36 -07:00
Andrew Tridgell
a11bb148f7 s4/torture: don't mix declarations and code 2009-09-10 12:14:53 +10:00
Aravind Srinivasan
4d7685c1d4 s4/torture: add new SMB oplock tests
* test if oplocks are granted when requesting delete-on-close
* test how oplocks are broken by byte-range-lock requests
2009-09-09 10:22:13 -07:00
Aravind Srinivasan
c091d4b08c s4/torture: convert printf to torture_comment()
Allows "make test" and other harnesses to print cleaner output.
2009-09-09 10:22:12 -07:00
Tim Prouty
5000640bf4 s4 torture: Add new streams oplock test 2009-04-01 20:02:31 -07:00
Tim Prouty
7eb097a66d s4 torture: Change nttransrename to use a normal access mask
batch9 already tests for stat-only opens
2009-02-10 19:35:33 -08:00
Stefan Metzmacher
0ac7792e02 s4:libcliraw: s/private/private_data
metze
2009-02-02 13:08:51 +01:00
Stefan Metzmacher
ab7f003aad s4:torture: s/private/private_data
metze
2009-02-02 13:08:38 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
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-29 20:46:40 +01:00
Jeremy Allison
55620b4e3c Samba3 smbd now passes test BATCH23 (with the fix for bug #5979), only BATCH22 left to fix.
Jeremy.
2008-12-17 17:30:18 -08:00
Jelmer Vernooij
ff36c52d8c Remove another use of global_loadparm.
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-02 16:07:28 +01:00
Jelmer Vernooij
3ebc574be4 Fix the build. 2008-11-02 02:30:21 +01:00
Jelmer Vernooij
8b06312f7e Eliminate another instance of global_loadparm. 2008-10-24 13:13:27 +02:00
Volker Lendecke
e037305187 Add the oplock-batch25 test showing that a writeattr does not break an oplock
Probably that's already somewhere else, but I did not find it.
2008-10-14 13:30:13 +02:00
Jelmer Vernooij
235b729309 Cope with API changes. 2008-09-30 03:07:08 +02:00
Jelmer Vernooij
4b9c7df9b7 Avoid event_find_context when a event context is already available.
(This used to be commit 4ca264679ecfd938c538a93f4efff1bfa23c3744)
2008-04-16 23:06:27 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-02 04:53:27 +02:00
Michael Adam
195853464a smbtorture: fix typos in RAW-OPLOCK output.
Michael
(This used to be commit 9fa4b53b61064c910b8f5c9c676c971023b8670c)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
23ab56cd80 RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
metze
(This used to be commit cd1b8efc5d8dc1eec03fe1bf1eb58dbded9584eb)
2008-03-12 15:13:28 +01:00
Jeremy Allison
799cfe0d76 Added test_nttransrename() to test Metze's new code.
Jeremy.
(This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)
2008-03-11 15:27:08 -07:00
Jeremy Allison
333870d5a0 Samba3.2 now passes a lot more tests - remove the S3 specific
exemptions.
Jeremy.
(This used to be commit a70719d579a7eefbfd973267b95a87aaa6b649b0)
2008-03-11 13:39:04 -07:00
Jeremy Allison
fe3316431e Samba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit b2007956aa4534f22ad7fd85b0aee0be769548ae)
2008-03-11 12:37:20 -07:00
Jeremy Allison
de4a495438 Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
2008-03-11 10:21:09 -07:00
Stefan Metzmacher
e24d47ec2e RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()
Also improve the output.

metze
(This used to be commit d0b641a9ee36939468beb427bf6b15892342a33d)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
4bfc32b160 RAW-OPLOCK: add BATCH24 test another case with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 4fb2c9fb1f4e3ee23281ca83f8b91d252cbf53c7)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
80104efb58 RAW-OPLOCK: add BATCH23 and test with a connection with no CAP_LEVEL_II_OPLOCKS
metze
(This used to be commit 2192d6d2bda2afd2ba1ed0cb68bdfe590b9d50af)
2008-03-06 17:19:36 +01:00
Stefan Metzmacher
bc9bb918a1 RAW-OPLOCK: remove unused vars
metze
(This used to be commit 0905f3ebd1cb1ac9cefc4272208add9e5a8d7f59)
2008-03-06 17:19:34 +01:00
Stefan Metzmacher
8ff6647d29 RAW-OPLOCK: add BATCH22 and test the behavior of oplock break timeouts
metze
(This used to be commit c459885898c9912df1ae5afff4fef2ff809dc15e)
2008-03-04 14:40:56 +01:00
Stefan Metzmacher
13764eb02d RAW-OPLOCK: add BATCH21: a self write with an oplock doesn't break it
metze
(This used to be commit a5476ee41c140123db160b2e36c8c7084619a738)
2008-03-04 14:40:51 +01:00
Stefan Metzmacher
6d184c70ca RAW-OPLOCK: be more strict with share modes against windows and samba4
But still allow samba3 behavior.

metze
(This used to be commit a0decdf63e2f7ef6ee62a3fda5070b2fccee5682)
2008-02-27 16:33:33 +01:00
Stefan Metzmacher
202ffb47d7 RAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file work
metze
(This used to be commit 656011add338ab87188849c4a716d3c65a102a74)
2008-02-27 16:33:32 +01:00
Stefan Metzmacher
a9e6ed7d7b RAW-OPLOCK: add BATCH20 test renaming via setpathinfo() and setfileinfo()
metze
(This used to be commit b66c246c5db78db897bcf21a6ea3c777d65cfc6a)
2008-02-27 16:33:31 +01:00
Stefan Metzmacher
7ad5e82388 RAW-OPLOCK: add BATCH19 test renaming via setpathinfo
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-27 16:33:30 +01:00
Stefan Metzmacher
1e94642723 RAW-OPLOCK: add BATCH18 test a ntrename with FLAG_RENAME
metze
(This used to be commit 22c35d9ee7858c0ff58d5d0b4a9bf69fe0b8653f)
2008-02-27 16:33:30 +01:00
Stefan Metzmacher
852361b21a RAW-OPLOCK: add BATCH17 test rename on a file with oplock
metze
(This used to be commit 32f138d4b313a6c5e8ef8e15945df02e3b4db864)
2008-02-27 16:33:29 +01:00
Stefan Metzmacher
bc737332e6 RAW-OPLOCK: add EXCLISIVE6 test a rename on a file with an oplock
metze
(This used to be commit 3886a5dea2fa26eeed8bc1d20c44ef012ea1f746)
2008-02-27 16:33:28 +01:00
Stefan Metzmacher
dcb43c6dbb RAW-OPLOCK: add EXCLUSIVE5 to test attribute only with OVERWRITE_IF
metze
(This used to be commit 06547036e6554dc94f683263b54d528eac227ea8)
2008-02-27 16:33:19 +01:00
Stefan Metzmacher
8f4147ce5d RAW-OPLOCK: add BATCH16 and tests attribute only with OVERWRITE_IF
metze
(This used to be commit 2453628623795c34ece18a285e6c2de40c4518de)
2008-02-27 16:33:16 +01:00
Stefan Metzmacher
3df754a7a8 RAW-OPLOCK: add EXCLUSIVE4 a attribute only open doesn't break an exclusive oplock
metze
(This used to be commit b22587a5db4a1e2d5fa1a944896330f1a86eef11)
2008-02-27 16:32:35 +01:00
Stefan Metzmacher
c7b113beaf RAW-OPLOCK: add EXCLUSIVE3
This tests that a setpathinfo EOF breaks
an exclusive oplock to none.

metze
(This used to be commit fd5b4b3d4ec52572619dba065d689d58bec71ae0)
2008-02-27 16:32:09 +01:00
Stefan Metzmacher
9bf7c3912a RAW-OPLOCK: add EXCLUSIVE2
Exclusive oplocks break to LEVEL2

metze
(This used to be commit 1cddadb052106394046f03d65297ea68232e7492)
2008-02-27 16:32:09 +01:00
Stefan Metzmacher
ef892a398b RAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)
metze
(This used to be commit 546536dde07d82dbba6724df95cdd1ba50caf8c5)
2008-02-27 16:32:08 +01:00
Stefan Metzmacher
9d6ce7efaa RAW-OPLOCK: BATCH15: make sure a qpathinfo doesn't break batch oplocks
metze
(This used to be commit 4d17d44d3f418216a40c80f290f97a4dc29147b0)
2008-02-26 14:52:50 +01:00
Stefan Metzmacher
5dc8d3ed8b RAW-OPLOCK: remove unused var
(This used to be commit 6820da44828172769d9fdfa161acf762e3937a88)
2008-02-25 07:54:25 +01:00
Stefan Metzmacher
a64bd41601 RAW-OPLOCK: fix typo (send oplock releases on the correct connection)
metze
(This used to be commit f6ecf59c7555917374fc9e5430034815fd4cd245)
2008-02-25 07:54:24 +01:00
Jelmer Vernooij
0a2f1a46a0 r26249: Remove a couple more uses of global_loadparm.
(This used to be commit 80a61200508a00d5b16a3e748ce92d54b9fefcd2)
2007-12-21 05:47:27 +01:00
Andrew Tridgell
ab52f9314d r25689: test with a non-zero size file
(This used to be commit 2a6713aa239d07f6898f507ddb3631504c379792)
2007-12-21 05:43:14 +01:00