Simo Sorce
c8eb82816f
Fix build
...
(This used to be commit c16d1d430a
)
2008-04-21 19:53:15 -04:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162
)
2008-04-21 18:12:33 -04:00
James Peach
8a3e3391fb
smbtorture: Add RAW-BENCH-LOOKUP micro-benchmark.
...
This test samples the lookup rate for a non-existant filename in a
directory, while varying the number of files in the directory. The
lookup rate should continue to approximate the lookup rate for the
empty directory case.
(This used to be commit ca7e4d9166
)
2008-04-21 15:09:43 -07:00
Jelmer Vernooij
9de0594175
Fix the build.
...
(This used to be commit 40b7b0e503
)
2008-04-17 01:30:21 +02:00
Jelmer Vernooij
06d06c6c94
Use provided event context rather than looking for it.
...
(This used to be commit fd0bb96ace
)
2008-04-17 01:19:20 +02:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
4b9c7df9b7
Avoid event_find_context when a event context is already available.
...
(This used to be commit 4ca264679e
)
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 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Michael Adam
195853464a
smbtorture: fix typos in RAW-OPLOCK output.
...
Michael
(This used to be commit 9fa4b53b61
)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
3530099cf2
RAW-BENCH-OPEN: avoid sync calls before the main loop
...
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.
Now we setup the first opens, but send them all together
when entering the main loop.
metze
(This used to be commit 3f2d12c61e
)
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
b65ad8966a
RAW-BENCH-OPEN: fix the output and calculate the total operations
...
metze
(This used to be commit c84e3abae9
)
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
23ab56cd80
RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
...
metze
(This used to be commit cd1b8efc5d
)
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
2801b6a522
RAW-STREAMS: do a exit on the session after each sub tests
...
metze
(This used to be commit 3f7fef8b8c
)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d
RAW-STREAMS: do what the comments say
...
metze
(This used to be commit eb68a8ed4f
)
2008-03-12 14:23:30 +01:00
Jeremy Allison
799cfe0d76
Added test_nttransrename() to test Metze's new code.
...
Jeremy.
(This used to be commit 4556fafede
)
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
fdd7f68660
RAW-SEARCH: skip RESUME_KEY tests against samba3
...
metze
(This used to be commit ca5b377471
)
2008-03-11 21:59:16 +01:00
Jeremy Allison
333870d5a0
Samba3.2 now passes a lot more tests - remove the S3 specific
...
exemptions.
Jeremy.
(This used to be commit a70719d579
)
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 b2007956aa
)
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 a8a5339cf2
)
2008-03-11 10:21:09 -07:00
Michael Adam
97a272a4bf
torture: fix escape sequence in test_chkpath().
...
Michael
(This used to be commit d92597d29c
)
2008-03-07 15:00:37 +01:00
Stefan Metzmacher
e24d47ec2e
RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()
...
Also improve the output.
metze
(This used to be commit d0b641a9ee
)
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 4fb2c9fb1f
)
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 2192d6d2bd
)
2008-03-06 17:19:36 +01:00
Stefan Metzmacher
bc9bb918a1
RAW-OPLOCK: remove unused vars
...
metze
(This used to be commit 0905f3ebd1
)
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 c459885898
)
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 a5476ee41c
)
2008-03-04 14:40:51 +01:00
Stefan Metzmacher
e0081626ec
RAW-SFILEINFO-RENAME: test renaming of directories by path and handle
...
metze
(This used to be commit ce2b7cec10
)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
863e65e955
RAW-SFILEINFO-RENAME: test renaming by path while a handle is open on a file
...
metze
(This used to be commit 6c0395d4d9
)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
09173244d2
RAW-CHKPATH: also use qpathinfo NAME_INFO and check the returned name
...
Also add some more test combinations.
metze
(This used to be commit 09985b061a
)
2008-02-29 15:17:52 +01:00
Jelmer Vernooij
73138c1198
raw-qfsinfo: Convert to new torture API.
...
(This used to be commit 6ded77b777
)
2008-02-29 00:58:47 +01:00
Jelmer Vernooij
2946a11dc7
Remove use of global_loadparm.
...
(This used to be commit 4472d7e1e4
)
2008-02-28 20:30:03 +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 a0decdf63e
)
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 656011add3
)
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 b66c246c5d
)
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 7bac95db5e
)
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 22c35d9ee7
)
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 32f138d4b3
)
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 3886a5dea2
)
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 06547036e6
)
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 2453628623
)
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 b22587a5db
)
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 fd5b4b3d4e
)
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 1cddadb052
)
2008-02-27 16:32:09 +01:00
Stefan Metzmacher
ef892a398b
RAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)
...
metze
(This used to be commit 546536dde0
)
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 4d17d44d3f
)
2008-02-26 14:52:50 +01:00
Stefan Metzmacher
5dc8d3ed8b
RAW-OPLOCK: remove unused var
...
(This used to be commit 6820da4482
)
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 f6ecf59c75
)
2008-02-25 07:54:24 +01:00
Jelmer Vernooij
921b176484
Remove more uses of global_loadparm.
...
(This used to be commit 47d05ecf6f
)
2008-02-21 14:50:57 +01:00
Andrew Tridgell
e939659e43
make the multiplier in the RAW-OFFLINE test settable
...
(This used to be commit f4b363d7a6
)
2008-02-07 23:05:44 +11:00
Andrew Tridgell
8ef7ddbf89
added latency reporting
...
(This used to be commit f0ffbb8e19
)
2008-01-25 17:27:36 +11:00
Andrew Tridgell
01a0aa4fd1
this is in seconds
...
(This used to be commit 019dd9a3d7
)
2008-01-25 17:27:17 +11:00
Andrew Tridgell
3249f4f84e
more useful output
...
(This used to be commit 033cab6546
)
2008-01-25 15:00:45 +11:00
Andrew Tridgell
4e4e7dbff8
added a offline file torture test BASE-OFFLINE
...
(This used to be commit d4b26fb2a3
)
2008-01-25 15:00:11 +11:00
Volker Lendecke
66871f9950
Add an exception for S3
...
Doing this correctly would involve a create_file call for qpathinfo
(This used to be commit da9a5b571e
)
2008-01-20 15:55:33 +01:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
425732f688
r26651: libsmb: Allow specifying signing policy from higher up.
...
The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.
(This used to be commit 9f64213463
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
5d0e4f2147
r26650: torture/raw: Fix warnings in lockbench/openbench.
...
I'm surprised this didn't cause any breakages. We should probably run (a subset of) RAW-LOCKBENCH + RAW-OPENBENCH in make test to make sure they don't regress.
(This used to be commit 9bea9c0c4f
)
2008-01-03 12:33:35 -06:00
Jelmer Vernooij
969b8579c7
r26646: libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections.
...
(This used to be commit 0ef75e4e3c
)
2008-01-02 12:48:04 -06:00
Jelmer Vernooij
771b347f9b
r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
...
(This used to be commit 385ffe4f4c
)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
ab69eb8d89
r26250: Avoid global_loadparm in a couple more places.
...
(This used to be commit 2c6b755309
)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
0a2f1a46a0
r26249: Remove a couple more uses of global_loadparm.
...
(This used to be commit 80a6120050
)
2007-12-21 05:47:27 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Volker Lendecke
0c5443cbe5
r26184: Streams are tricky....
...
(This used to be commit f8c4a5ccc6
)
2007-12-21 05:46:38 +01:00
Volker Lendecke
f6d91ea2e2
r26104: Revert 26103 -- breaks make test
...
(This used to be commit d1a220aee3
)
2007-12-21 05:46:05 +01:00
Volker Lendecke
d588d3e3ad
r26103: Leave streams around to unlink
...
Add test case for stream name case insensitity
(This used to be commit d81bb50e10
)
2007-12-21 05:46:04 +01:00
Volker Lendecke
39dec5ee66
r26029: In RAW-STREAMS test listing of streams
...
(This used to be commit 8dbe10be30
)
2007-12-21 05:45:46 +01:00
Stefan Metzmacher
a67d2e0a83
r25925: torture/raw: fix sending unitialized bytes in RAW-SAMBA3ROOTDIRFID
...
(found by make valgrindtest)
metze
(This used to be commit e95c2ffe00
)
2007-12-21 05:45:05 +01:00
Günther Deschner
f2002541ce
r25803: Make our security descriptor acl manipulation methods more generic so that we
...
can add and delete ACEs for SACLs as well as for DACLs.
Guenther
(This used to be commit 947fff9941
)
2007-12-21 05:44:06 +01:00
Andrew Tridgell
ab52f9314d
r25689: test with a non-zero size file
...
(This used to be commit 2a6713aa23
)
2007-12-21 05:43:14 +01:00
Günther Deschner
a6c4b9d179
r25607: Allow to set security descriptor type flags at creation time with
...
security_descriptor_create().
Guenther
(This used to be commit 7dd0d28d25
)
2007-12-21 05:42:51 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
3048e9ad65
r25392: Add loadparm context as argument in a couple more places.
...
(This used to be commit c62f51cc28
)
2007-10-10 15:07:24 -05:00
Volker Lendecke
5f280af012
r25310: Make sure we do not regress on r25309
...
(This used to be commit 4eb0ec51aa
)
2007-10-10 15:07:12 -05:00
Volker Lendecke
70b33dc533
r25296: Apply patch by Elrond <elrond+sambaclassic@samba-tng.org>: Put
...
__location__ into a few printfs.
Thanks,
Volker
(This used to be commit b0e323a09e
)
2007-10-10 15:07:08 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ce0ff008b5
r25034: Remove unused variables.
...
(This used to be commit ec1c68e3a6
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
cd962355ab
r25000: Fix some more C++ compatibility warnings.
...
(This used to be commit 08bb1ef643
)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
6cf69fee18
r24994: Fix some C++ warnings.
...
(This used to be commit 925abf74fa
)
2007-10-10 15:05:26 -05:00
Jelmer Vernooij
e5470270ba
r24883: Use torture API.
...
(This used to be commit 9935aac0f3
)
2007-10-10 15:03:27 -05:00
Jelmer Vernooij
ac2a701483
r24882: Use the torture API in BASE-CHARSET.
...
(This used to be commit 93910d92cd
)
2007-10-10 15:03:27 -05:00
Volker Lendecke
afe87d6cfc
r24798: RAW-SAMBA3POSIXTIMEDLOCK
...
This adds the torture:localdir option, smbtorture expects the share to actually
reside in this directory. This might open up more solid posix vs cifs tests.
(This used to be commit b0a40dd277
)
2007-10-10 15:03:12 -05:00
Ronnie Sahlberg
2e5e9411d4
r24768: redo the pingpong torture using sync functions to make the code simpler
...
(This used to be commit b4a6a4c129
)
2007-10-10 15:03:07 -05:00
Ronnie Sahlberg
c0641b4728
r24767: add a torture test that performs "ping-pong" that works the same way as
...
ping-pong.c
this is a manual test and only makes sense to be used in parallell with
the real ping-pong.c tool
(This used to be commit b58677fa74
)
2007-10-10 15:03:07 -05:00
Andrew Tridgell
aaf7df0597
r24765: added a RAW-HOLD-OPLOCK test. This is a manual test, meant to be used
...
to test the interaction of oplocks with local filesystem or NFS
access. You start it, then manually access the 4 files via another
mechanism (such as a shell) and see what oplock breaks you get
(This used to be commit 4c3e456426
)
2007-10-10 15:03:06 -05:00
Jelmer Vernooij
748dcc3376
r24758: More use of torture API.
...
(This used to be commit e6f571227e
)
2007-10-10 15:03:04 -05:00
Jelmer Vernooij
0e6773525f
r24741: More use of the torture API.
...
(This used to be commit de05c3651a
)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
919aa6b27e
r24735: Use torture API in more places.
...
(This used to be commit 1319d88c09
)
2007-10-10 15:03:00 -05:00
Jelmer Vernooij
2fefa818a9
r24728: Use more stock torture functions.
...
(This used to be commit da3a7ee407
)
2007-10-10 15:02:58 -05:00
Andrew Bartlett
8794ffbc61
r24695: Now the Samba4 passes this test, remove the skip...
...
Andrew Bartlett
(This used to be commit 771affed88
)
2007-10-10 15:02:48 -05:00
Jelmer Vernooij
f96b1778a4
r24674: Make sure results are always on a new line, fix typo in test name.
...
(This used to be commit 40c1635b39
)
2007-10-10 15:02:37 -05:00
Jelmer Vernooij
d981c69a18
r24670: Use torture functions for settings.
...
(This used to be commit a690667630
)
2007-10-10 15:02:36 -05:00
Andrew Tridgell
f7f2323e47
r24588: use the right type
...
(This used to be commit 710f6dc17f
)
2007-10-10 15:02:22 -05:00
Andrew Tridgell
51aced3dc8
r24587: the elements of the array are not talloc pointers
...
(This used to be commit 2ebf00dc42
)
2007-10-10 15:02:21 -05:00
Andrew Tridgell
2d6e6ebddc
r24586: same bug in RAW-BENCH-OPEN
...
(This used to be commit 3bd35bb8ab
)
2007-10-10 15:02:20 -05:00
Andrew Tridgell
489d23e808
r24585: put in the right state variable when doing a SMBecho - this caused the
...
wrong connection to reconnect on a SMBecho failure
(This used to be commit c61415b05d
)
2007-10-10 15:02:20 -05:00
Volker Lendecke
d9b9acd232
r24570: Attempt to fix make test
...
Samba4 seems not to survive the newly added tests
(This used to be commit b8a8a81ffe
)
2007-10-10 15:02:18 -05:00
Volker Lendecke
7e43f973c4
r24569: Add two tests
...
A subtest for rename to check if case-changing renames work
A test that exposes the case insensitivity unix_convert bug
(This used to be commit 786706322a
)
2007-10-10 15:02:17 -05:00
Volker Lendecke
fb19fe7a51
r24529: Against samba3, treat EAS_NOT_SUPPORTED as acceptable for t2open
...
Many hosts in the build farm don't have EA support
(This used to be commit 3cca299c72
)
2007-10-10 15:02:11 -05:00
Jeremy Allison
103b1ead98
r24478: Check that NTrename also maps NT_STATUS_OBJECT_NAME_COLLISION
...
to ERRDOS, ERRrename.
Jeremy.
(This used to be commit 7cc8be50b6
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
255c24eb8f
r24477: Add a rename test to prove that NT_STATUS_OBJECT_NAME_COLLISION
...
is mapped to ERRDOS, ERRrename on a rename error, but mapped
to ERRDOS, ERRfilexists on an open error.
Jeremy.
(This used to be commit e634c627b1
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
e42ff21109
r24473: Prove this is also the same for NTcreateX. It's pretty much
...
guarenteed now that NT_STATUS_OBJECT_NAME_COLLISION should
map to ERRDOS, ERRfilexists on all open calls at least.
Jeremy.
(This used to be commit 125590e008
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
a97fa8124f
r24469: Start adding in the torture tests that prove that NT_STATUS_OBJECT_NAME_COLLISION
...
should map to ERRDOS, ERRfilexists not ERRDOS, ERRrename as it currently does in
the errormap. This will break the build farm against Samba3 until I start adding
in the hand mapping from the above. Tridge - we may need to reconsider the mapping
here.
Jeremy.
(This used to be commit 74a871ce70
)
2007-10-10 15:01:54 -05:00
Volker Lendecke
890c42045d
r24041: After metze's ack, check in torture_comment from Zack Krisch
...
<zack.kirsch@isilon.com>
(This used to be commit b1148b7ab8
)
2007-10-10 15:01:18 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jeremy Allison
4f2fe8e947
r23734: Add a test to prove tridge's theory that the mask, once set
...
on an open directory handle, is never changed. (He's right btw :-).
Jeremy.
(This used to be commit bf9242ad45
)
2007-10-10 14:59:09 -05:00
Volker Lendecke
a7601c9829
r23492: Also activate the split out test...
...
(This used to be commit a3cb4bcae7
)
2007-10-10 14:53:22 -05:00
Volker Lendecke
25abee0505
r23491: Split out the RENAME trans2 call into a separate test
...
(This used to be commit 80244f1ee6
)
2007-10-10 14:53:22 -05:00
Andrew Tridgell
95a3ca53e5
r23182: fixed valgrind error
...
(This used to be commit fae416cbe8
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
aeac4f4800
r23181: prevent attempts to reopen the connection twice at the same time
...
(This used to be commit a25c27dbae
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
9b95f57530
r23180: auto-reconnect on both NT_STATUS_END_OF_FILE and NT_STATUS_LOCAL_DISCONNECT
...
(This used to be commit 32a6c268a7
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
12d9b33ed6
r23152: fixed some async retry issues in openbench
...
(This used to be commit 08eeaff079
)
2007-10-10 14:52:58 -05:00
Stefan Metzmacher
e3408e6160
r23144: splitup RAW-OPLOCK into small units
...
metze
(This used to be commit 0cfe152cb1
)
2007-10-10 14:52:57 -05:00
Andrew Tridgell
d142f4b0f2
r23143: error found by valgrind
...
(This used to be commit 268a26131e
)
2007-10-10 14:52:56 -05:00
Andrew Tridgell
a085d682e6
r23142: added error checking and reconnect on echo replies
...
(This used to be commit 0d47efe6d6
)
2007-10-10 14:52:56 -05:00
Andrew Tridgell
d79225c94a
r23140: send send echos while disconnected
...
(This used to be commit 233172a9f7
)
2007-10-10 14:52:55 -05:00
Andrew Tridgell
18a4d22880
r23139: use echo operations once a second in lockbench and openbench to ensure
...
we detect IP takeover on servers
(This used to be commit b5292a25ed
)
2007-10-10 14:52:55 -05:00
Andrew Tridgell
5bb0dcd051
r23062: make sure one node doesn't get ahead of the others at the start
...
(This used to be commit 6ab736f530
)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
9e1c88897c
r23061: keep the RAW-BENCH-OPEN test balanced
...
(This used to be commit 453d6f5c58
)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
4378af38ec
r23056: added automatic reconnect to RAW-BENCH-OPEN, similar to RAW-BENCH-LOCK
...
(This used to be commit 30b1733d75
)
2007-10-10 14:52:45 -05:00
Andrew Tridgell
fcd4f22cd6
r23031: removed bogus event_loop_once() calls in RAW-CONTEXT test - they could
...
hang forever if an ealier one caused two operations to complete at
once
this is why RAW-CONTEXT was taking 5 minutes on the build farm
(This used to be commit eeba37e25c
)
2007-10-10 14:52:42 -05:00
Andrew Tridgell
c42219d735
r22969: fix some more places where we could end up with more than one event
...
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb656
)
2007-10-10 14:52:34 -05:00
Andrew Tridgell
da9b4626bc
r22965: changed RAW-LOCK-BENCH to remove the scheduling uncertainty. We should
...
always get balanced locking now
(This used to be commit 4e6df7b9b1
)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
e9eb862dc0
r22962: show progress separately for each client in RAW-BENCH-LOCK, this is
...
much more useful for seeing why we get unbalanced locking
(This used to be commit 1f1f57023b
)
2007-10-10 14:52:32 -05:00
Volker Lendecke
e1e759585e
r22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
...
might take a bit for events to propagate from one to another connection,
in particular with a process per connection.
(This used to be commit 0c7a518b2d
)
2007-10-10 14:52:29 -05:00
Andrew Tridgell
3173a3cee6
r22881: show number of connected clients
...
(This used to be commit 42f6c5106e
)
2007-10-10 14:52:28 -05:00
Andrew Tridgell
2e11a2b601
r22876: - try to reconnect once per second, not continously
...
- patch from ronnie to fix the lock offset on reconnect
(This used to be commit 77d7ca5590
)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
3a88c56346
r22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
...
This should help with Vista joins.
Andrew Bartlett
(This used to be commit 8f85fb3786
)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
d307c116c8
r22873: Make the RAW-QFILEINFO-IPC test pass against Win2k3.
...
Next step is working on Samba4's IPC ntvfs module.
Andrew Bartlett
(This used to be commit aca0250492
)
2007-10-10 14:52:26 -05:00
Andrew Bartlett
8861c4a68e
r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
...
It seems most opertaions are supported, but that the values are not
consistant. I think these are very much hand-hacked stubs, which is
what they will be on Samba4 too.
I'll need to add some more 'don't fail for...' hacks before this
passes against Win2k3.
Andrew Bartlett
(This used to be commit dcb858d0c7
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
0f6b62072e
r22837: make RAW-BENCH-LOCK reconnect asynchronously when one of its servers
...
goges away
(This used to be commit cf0cdf5171
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
ba0424fddb
r22836: started adding auto-reconnect logic to lockbench. This needs to be
...
made async.
(This used to be commit 9e1ea3e09c
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
7df266a4f8
r22835: it's useful to see how much time is remaining in this test (so we can
...
tell if failures are due to the cleanup code)
(This used to be commit a4ff1927d4
)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
5c0963acc3
r22813: improve error messages in RAW-NOTIFY test
...
(This used to be commit f5b2011db9
)
2007-10-10 14:52:20 -05:00
Andrew Tridgell
5f475b80ee
r22670: changed the RAW-NOTIFY test to support clustered testing (two nodes)
...
(This used to be commit 12ce85aea1
)
2007-10-10 14:52:00 -05:00
Stefan Metzmacher
628ff1bea3
r22579: disable progress printing in the build-farm
...
metze
(This used to be commit 93089ad5e8
)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
2eb8b675d1
r22189: fix compiler warning
...
metze
(This used to be commit 62faa4bce4
)
2007-10-10 14:50:01 -05:00
Andrew Tridgell
25b4ee7af8
r22087: added a RAW-BENCH-OPEN test that can be used to stress out a clustered
...
implementation of a opendb backend. Use it in combination with
--unclist to tell smbtorture to connect to multiple nodes in the
cluster
(This used to be commit b4e38b1b8d
)
2007-10-10 14:49:50 -05:00
James Peach
754d416ea5
r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
...
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1f
)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
72d88d158a
r21707: Finally merge my (long-living) perlselftest branch.
...
This changes the main selftest code to be in perl rather than in shell script.
The selftest script is now no longer a black box but a regular executable that takes
--help.
This adds the following features:
* "make test TESTS=foo" will run only the tests that match the regex "foo"
* ability to deal with expected failures. the suite will not warn about tests
that fail and are known to fail, but will warn about other failing tests and
tests that are succeeding tests but incorrectly marked as failing.
* ability to print a summary with all failures at the end of the run
It also opens up the way to the following features, which I hope to implement later:
* "environments", for example having a complete domains with DCs and domain members
in a testenvironment
* only set up smbd if necessary (not when running LOCAL tests, for example)
* different mktestsetup scripts per target. except for the mktestsetup script, we can
use the same infrastructure for samba 3 or windows.
(This used to be commit 38f867880b
)
2007-10-10 14:49:15 -05:00
Andrew Tridgell
0d60b9af90
r21216: fail the RAW-BENCH-LOCK test if the locking doesn't happen evenly
...
across the connections
(This used to be commit 01ef699981
)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
d9bd4dad50
r21215: extend the RAW-MUX test to test cancelling a async lock request using
...
a SMBexit
(This used to be commit 753a85eff6
)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
16d887b3c4
r21139: make the RAW-MUX test fail if the locking subsystem doesn't trigger
...
early byte range lock retries (ie. PENDING locks in brlock)
(This used to be commit 09237e3acf
)
2007-10-10 14:44:32 -05:00
Volker Lendecke
fe5aad78b0
r21125: Tridge, please check this closely if this relaxed notify test is
...
acceptable.
In Samba3 with inotify we have the problem that the MODIFIED action is sent
second. I think this could also happen in Samba4, depending on the order when
the different sockets (unix domain dgram / inotify) are looked at by the
events system.
This patch accepts the NEW/OLD/MODIFIED entries in any order.
Comments welcome!
Volker
(This used to be commit 72a7771b75
)
2007-10-10 14:44:31 -05:00
Volker Lendecke
9df5d5e31f
r21124: Samba3 does not support create times correctly.
...
Volker
(This used to be commit c9886ce63b
)
2007-10-10 14:44:30 -05:00
Andrew Tridgell
630733e9ef
r20886: fixed a valgrind error
...
(This used to be commit acc96e42e7
)
2007-10-10 14:43:45 -05:00
Volker Lendecke
677633480b
r20758: Adapt RAW-UNLINK error returns for wildcard unlinks to Samba3.
...
If someone is feeling like solving that puzzle, contact Jeremy or me for hints
:-)
Volker
(This used to be commit 93e6dbaf5b
)
2007-10-10 14:40:46 -05:00
Andrew Tridgell
1c211a2e43
r20650: revert a bunch of code I didn't mean to commit yet
...
(This used to be commit b3e2d49087
)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba
r20647: add cluster code
...
(This used to be commit 5870830b99
)
2007-10-10 14:37:24 -05:00
Volker Lendecke
c5c8a33831
r20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
...
particular the NT_STATUS_INVALID_PARAMETER thing was badly wrong. Remove the
changes based on it. Using gentest is much more effective in this respect, but
it will take a while to figure out the wildcard error handling of W2k3.
Volker
(This used to be commit 33d842e27d
)
2007-10-10 14:37:18 -05:00
Volker Lendecke
dff70f76bc
r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
...
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.
Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.
Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.
Volker
(This used to be commit 838afa8f7d
)
2007-10-10 14:37:15 -05:00
Volker Lendecke
aeda6017ac
r20613: The individual tests are fine, I did run samba3badpath, but raw-samba3hide
...
left test.txt with permissions 000 behind...
Volker
(This used to be commit fdd501f803
)
2007-10-10 14:37:14 -05:00
Volker Lendecke
36f78c139a
r20609: Additional torture test for our bad_path handling. Most of it is disabled for
...
now, there are calls (for example trans2ffirst) which are quite dubious.
Volker
(This used to be commit 79846f09b9
)
2007-10-10 14:37:13 -05:00
Volker Lendecke
3bc9704ce0
r20595: W2k and XP don't always show the top directory as hidden, w2k3 does. I think
...
Samba should follow w2k3 in this respect.
Volker
(This used to be commit 6094ee9df5
)
2007-10-10 14:37:11 -05:00
Volker Lendecke
9e1a690d28
r20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
...
and then remove perms from the parent dir....
Volker
(This used to be commit f24c505257
)
2007-10-10 14:36:53 -05:00
Volker Lendecke
0221d44ef4
r20549: obvious bug fix..
...
(This used to be commit f0aa63e390
)
2007-10-10 14:36:52 -05:00
Volker Lendecke
cc8e2febb8
r20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns
...
HIDDEN.
Volker
(This used to be commit 83a2091206
)
2007-10-10 14:36:02 -05:00
Volker Lendecke
d1e3dccab6
r20497: Two changes to RAW-OPEN that Samba does not fulfil:
...
Samba3 returns the SPARSE flag for files with size > allocation, and on many
configs Samba3 does not support EAs. Cope with both.
Tridge, please check this is acceptable for this test.
Volker
(This used to be commit 4df4d37c3d
)
2007-10-10 14:36:01 -05:00
Volker Lendecke
e1c244a1cf
r20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
...
we have any?? ;-), so don't mark failure to correctly cope with the close
write time as critical.
Volker
(This used to be commit 42070b09cb
)
2007-10-10 14:35:58 -05:00
Volker Lendecke
04b9446b2a
r20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
...
Samba3. This is a known deficiency also taken care of in the base-delete
test.
Volker
(This used to be commit 6b91bb93fa
)
2007-10-10 14:35:56 -05:00
Volker Lendecke
b5a932e13a
r20311: Check one more samba3 error path for t2mkdir
...
(This used to be commit 0f018cca6f
)
2007-10-10 14:29:37 -05:00
Volker Lendecke
f38b6db8b1
r20309: Don't treat non-supported EAs as fatal against Samba3.
...
Volker
(This used to be commit 52d9c7ed0a
)
2007-10-10 14:29:37 -05:00
Andrew Tridgell
9944a67508
r20092: added a locking benchmark that should be good for benchmarking
...
communitcation in a CIFS clustered server. It tries to keep the
connections full by setting up the next lock as each lock is done.
The locking pattern is similar to the local filesystem ping pong test
in junkcode, forcing a communication between nodes on each request
(This used to be commit d57b9fb298
)
2007-10-10 14:29:04 -05:00
Andrew Tridgell
c9291facd4
r20078: support the large samba3 reads in RAW-READ test
...
(This used to be commit a4c2a575fa
)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
6300221b6c
r20059: james was asking about CAP_LARGE_READX and reads close to the 64k
...
boundary. This test shows that both for Samba4 and w2k3, reads larger
than or equal to 64k don't work (return zero bytes).
Not that I claim this is very useful behaviour :-)
(This used to be commit a10fa12ff5
)
2007-10-10 14:28:56 -05:00
Jelmer Vernooij
108de297a7
r19510: Make smbtorture's `nprocs' parameter a parametric option.
...
(This used to be commit f5d6b3ca29
)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
4fa24df98d
r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
...
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067
)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
535d1920f8
r19506: fixed remaining parts of RAW-READ and RAW-WRITE tests to check for
...
CAP_LARGE_FILES
(This used to be commit 66bebb2105
)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
9cd2b012f3
r19504: - fixed a free error in file_lines_parse
...
- added a function to test for large file support
- enable CAP_LARGE_FILES only if the test passes
- don't test at large offsets if the server doesn't set
CAP_LARGE_FILES
(This used to be commit c5423ea22b
)
2007-10-10 14:24:40 -05:00
Jelmer Vernooij
a39f239cb2
r19392: Use torture_setting_* rather than lp_parm_* where possible.
...
(This used to be commit b28860978f
)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5
r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
...
output in the testsuite rather than just True or False for a
set of tests.
The aim is to use this for:
* known failure lists (run all tests and detect tests that
started working or started failing). This
would allow us to get rid of the RPC-SAMBA3-* tests
* nicer torture output
* simplification of the testsuite system
* compatibility with other unit testing systems
* easier usage of smbtorture (being able to run one test
and automatically set up the environment for that)
This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305
)
2007-10-10 14:21:12 -05:00
Andrew Tridgell
9bda2c3ff2
r18585: 50 open searches is still too many for some of the build farm hosts,
...
which have a ulimit -n of 100. Drop the number of searches to 20.
That should limit the maximum total fd count to about 76, most of
which is all the listening sockets on the various interfaces
(This used to be commit fb5b8c4f8c
)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
d928bce0d8
r18541: with 100 old style searches we can run out of file descriptors on some
...
systems. drop to 50
(This used to be commit ce5d5a1872
)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
bca38ba866
r18371: made the directory depth notify test independent of timing
...
(This used to be commit 39458e62f5
)
2007-10-10 14:18:20 -05:00
Andrew Tridgell
8942893c39
r18355: increase the delays waiting for all events to propogate in the
...
RAW-NOTIFY test.
(This used to be commit 81fd19ba3f
)
2007-10-10 14:18:17 -05:00
Andrew Tridgell
3cc41b70da
r18320: the raw write size limit test hurts too many hosts. Limit it to 2^33
...
bytes if --dangerous is not set.
(This used to be commit 90e5136ea4
)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
89efea81d9
r18319: fixed the directory search resume code on IRIX
...
The problem was twofold:
1) irix returns 64 bit numbers in telldir(). The protocol uses a 32
bit resume key. We now cope with this properly using the code in
pvfs_list_seek_ofs().
2) irix returns 0xFFFFFFFF from telldir() for the last entry in the
directory. When added to DIR_OFFSET_BASE this became
DIR_OFFSET_DOTDOT which meant an infinite loop!
(This used to be commit 8cce9740ed
)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
30ee8beb93
r18301: I discovered how to load the warnings from a build farm build into
...
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff
)
2007-10-10 14:18:04 -05:00
Derrell Lipman
6d362bdb7c
r18103: add torture test for 'RAW_OPEN_OPENX without a leading slash on the path', known to fail on NetApp filers
...
(This used to be commit 9a8c7b0a76
)
2007-10-10 14:17:17 -05:00
Stefan Metzmacher
46cdf9250b
r17785: fix compiler warnings
...
metze
(This used to be commit 256fc452a4
)
2007-10-10 14:16:42 -05:00
Jeremy Allison
38dee43c19
r17141: Prove that create dispositions with truncate and
...
overwrite break oplocks.
Jeremy.
(This used to be commit 94886f8c40
)
2007-10-10 14:10:14 -05:00
Jeremy Allison
8de86d192a
r17139: Checking in Volker's extended oplock test.
...
Jeremy
(This used to be commit 720c425af1
)
2007-10-10 14:10:14 -05:00
Jeremy Allison
6cebe4d890
r17099: Samba3 now passes RAW-LOCK completely, no need for
...
parameters to protect it.
Jeremy.
(This used to be commit 382c37e3d7
)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
440d0487a6
r17020: pass the real error to the failing requests
...
metze
(This used to be commit 49b96ac44a
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a6a8065812
r17015: add a test that closes the tcp connection with an outstanding
...
notify request
metze
(This used to be commit d90313f715
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a8958391e8
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
(This used to be commit de50e0ccdd
)
2007-10-10 14:10:06 -05:00
Volker Lendecke
b7c5bc522b
r16907: Add an index parameter to torture_open_connection. Next step is to enable the
...
unclist parameter for all tests that do two connections, to enable cluster
testing.
Volker
(This used to be commit a5d6db0924
)
2007-10-10 14:09:58 -05:00
Jeremy Allison
ec3be5b908
r16843: Confirm that openX uses the same mapping table as getatr.
...
Jeremy.
(This used to be commit 1c84e57e71
)
2007-10-10 14:09:52 -05:00
Volker Lendecke
a5cbc9a01c
r16842: Jeremy, I almost don't dare checking this in.....
...
Volker
(This used to be commit ec36c49c08
)
2007-10-10 14:09:50 -05:00
Stefan Metzmacher
af0a9eb529
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
(This used to be commit 78c201db8a
)
2007-10-10 14:09:49 -05:00
Jeremy Allison
5517249fad
r16761: Added additional NTSTATUS and DOS error test for "."
...
This confirms a theory of mine...
Added RAW-SAMBA3BADPATH to selectable options.
Jeremy.
(This used to be commit 4cd7a8ed62
)
2007-10-10 14:09:44 -05:00
Volker Lendecke
81d09a7f2e
r16759: Jeremy, another little error case for you :-)
...
For the paths with illegal characters we should return ERRDOS:ERRbadpath in
the DOS error case. We return ERRDOS:ERRinvalidname...
Volker
(This used to be commit c2203068f4
)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
4357d9f5de
r16707: - test attrib = 0 in BASIC_INFO
...
- return an error when value doesn't match the expected value!
metze
(This used to be commit 1f0ecba773
)
2007-10-10 14:09:39 -05:00
Volker Lendecke
414c47633d
r16657: Test Jerry's iTunes bug, along with some more error conditions
...
Volker
(This used to be commit 12aa900eb2
)
2007-10-10 14:09:36 -05:00
Jelmer Vernooij
845df42a19
r16333: Move more code out of the core smbtorture. It now no longer
...
contains protocol-specific code.
(This used to be commit 819d3b4576
)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
90be000cd5
r16173: Use memory context provided by smbtorture.
...
(This used to be commit 88046d5951
)
2007-10-10 14:09:05 -05:00
Volker Lendecke
dcbd023aa0
r16151: |= fix found by metze
...
(This used to be commit ce54a15384
)
2007-10-10 14:09:01 -05:00
Volker Lendecke
c1cbe6e0b0
r16149: This is a very Samba3 specific test: It tests whether 'hide unreadable' and
...
'hide unwriteable files' actually do what they are supposed to do.
Volker
(This used to be commit 7bf02a5e0f
)
2007-10-10 14:09:01 -05:00
Jeremy Allison
4dd65fdd48
r15947: Do the same test on setting allocation info.
...
Jeremy.
(This used to be commit b8f6f62acd
)
2007-10-10 14:08:43 -05:00
Jeremy Allison
1204445aa0
r15946: Added check that proves that setpathinfo on an
...
oplocked open file generates a break.
Jeremy.
(This used to be commit 061b519b27
)
2007-10-10 14:08:43 -05:00
Andrew Tridgell
373bf313cd
r15881: fixed the RAW-ACLS test for 64 bit systems (was failing on ppc64)
...
(This used to be commit c954a6662d
)
2007-10-10 14:08:37 -05:00
Stefan Metzmacher
7f0e17e903
r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
...
metze
(This used to be commit 95bf41b4d4
)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
5a8ebb7b67
r15690: - disable the lock cancel test against samba3
...
- disable the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT test against samba3
metze
(This used to be commit 620cc182b3
)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
bd0fb90162
r15685: let samba3 pass RAW-READ and ignore one bug
...
this demonstrates how the target:samba3=yes option
passed in samba3's make test can be used in samba4's smbtorture
metze
(This used to be commit 856656739c
)
2007-10-10 14:08:05 -05:00
Stefan Metzmacher
5ff4b74df3
r15656: for NT IOCTL's we need to control the max_data field for some calls
...
metze
(This used to be commit 3cab02f6f5
)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
410fb90322
r15640: - NT IOCTL calls also have an 'in' data_blob
...
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload
not the SMB payload here
metze
(This used to be commit 358d03143f
)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
2a072bf9a2
r15615: - add some tests for cancel pending locks by SMBexit, SMBulogoff and SMBtdis
...
- add some tests which demonstrate the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT
error cases of failed locks
metze
(This used to be commit 218910f927
)
2007-10-10 14:07:00 -05:00
Jelmer Vernooij
e002300f23
r15328: Move some functions around, remove dependencies.
...
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3
)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
a30340affe
r15201: Use abs() rather then ABS()
...
(This used to be commit 1f3833d041
)
2007-10-10 14:04:16 -05:00
Stefan Metzmacher
73b385d3c4
r15122: test what access masks are needed when using the FLAGS2_READ_PERMIT_EXECUTE
...
flag.
metze
(This used to be commit d298e4760c
)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
e7f34592eb
r15070: test the needed access masks for read/write the different
...
security descriptor components
metze
(This used to be commit 88c57c8703
)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
4d72f3f8d0
r15066: - sync the dir_flags tests with the file_flags tests
...
- add some more checks for the w2k3 bug case
metze
(This used to be commit a55b44b96c
)
2007-10-10 14:04:06 -05:00
Andrew Tridgell
970f7122d9
r15033: expanded the RAW-OPLOCK test to include the different cases where the
...
client chooses to break to none or break to level II, when offered a
level II break from exclusive
(This used to be commit 9a35b14422
)
2007-10-10 14:04:02 -05:00
Andrew Tridgell
7f6ed60c70
r15016: add a test for a 2nd open with an exclusive oplock. It does not cause
...
a break, as exclusive oplocks don't cache close requests
(This used to be commit 9f2617a062
)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
48d3fb39ff
r15015: add an explanation for this test
...
(This used to be commit 9fdeec506f
)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
72343b9615
r15014: added a simple batch oplock benchmark
...
Jeremy, Samba3 currently fails this test with a 2.6.16-rc6 kernel and
kernel oplocks enabled. With kernel oplock off it passes, though its a
bit slow
(This used to be commit 99df202460
)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
b04592918d
r14969: ensure that even on slow machines we leave plenty of time for a series
...
of events to propogate internally in smbd before asking for them
(the test was failing on slow machines)
(This used to be commit a493539458
)
2007-10-10 14:00:48 -05:00
Andrew Tridgell
127967334f
r14956: change the notify search to be much more efficient by using a
...
per-depth bisection search. This makes the notify_trigger() call
log(N) which makes us scale well for large numbers of outstanding
notifies
(This used to be commit 16fd00925f
)
2007-10-10 14:00:45 -05:00
Andrew Tridgell
b5ee277f1a
r14948: add testing of truncate events, and add truncate support to inotify
...
backend
(This used to be commit b80523a631
)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
ce25ec56f3
r14942: make the RAW-NOTIFY test check the strange file rename semantics. Also
...
be more forgiving of matching on extra bits (inotify cannot match on
minimal bits for all events).
(This used to be commit 29de884737
)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
0dce9b003c
r14935: try to avoid a race condition in the recursion test
...
(This used to be commit 659576806f
)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
51a5b79ec0
r14934: greatly expand the RAW-NOTIFY testing of completion filters. We now
...
try each bit in the completion filter separately for a wide range of
file operations.
(This used to be commit 81f8b24526
)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
e221db7a39
r14928: demonstrate that the completion filter is only set on the first notify
...
on a directory handle
(This used to be commit b6e40d9b08
)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
d8544db317
r14927: expand the RAW-NOTIFY test to test recursive and rename handling
...
(This used to be commit e6abb1ecba
)
2007-10-10 14:00:18 -05:00
Stefan Metzmacher
1af925f394
r14860: create libcli/security/security.h
...
metze
(This used to be commit 9ec706238c
)
2007-10-10 13:59:44 -05:00
Andrew Tridgell
986aae3c5c
r14845: expanded the number of info levels tested for continue in the
...
RAW-SEARCH test
(This used to be commit a3e7640730
)
2007-10-10 13:59:42 -05:00
Stefan Metzmacher
f964db91e7
r14826: initialize pid1 and pid2:-)
...
metze
(This used to be commit 45e2832972
)
2007-10-10 13:59:24 -05:00
Andrew Tridgell
8e7078e149
r14794: added a test to see what happens when you send a notify request on a
...
handle that already has a notify request pending. It turns out that
they are queued
(This used to be commit 15e9302bcd
)
2007-10-10 13:59:19 -05:00
Stefan Metzmacher
7780e2bfa1
r14734: this demonstrates that a tcon isn't autoclosed by a ulogoff
...
the tcon can be reused using any other valid session later
metze
(This used to be commit b9a90ed763
)
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
7011384a3a
r14732: fix typo noticed by derrell, thanks!
...
metze
(This used to be commit ffa500ebb4
)
2007-10-10 13:59:16 -05:00
Jelmer Vernooij
909b111f58
r14720: Add torture_context argument to all torture tests
...
(This used to be commit 3c7a5ce291
)
2007-10-10 13:59:13 -05:00
Stefan Metzmacher
30976b1af1
r14710: make more clear that SMBexit only cares about the PID
...
that is used in the open call
metze
(This used to be commit 1bc6940e7d
)
2007-10-10 13:59:11 -05:00
Stefan Metzmacher
41a6591628
r14680: add some tests which demonstrate that closing the dir handle
...
triggers an empty notify reply with NT_STATUS_OK
metze
(This used to be commit 590dd49207
)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
35349a58df
r14542: Remove librpc, libndr and libnbt from includes.h
...
(This used to be commit 51b4270513
)
2007-10-10 13:58:42 -05:00
Andrew Tridgell
9225c02aee
r14539: get rid of a pointless union layer in struct smb_notify
...
(This used to be commit 1e1c559381
)
2007-10-10 13:58:41 -05:00
Jelmer Vernooij
d09b70c98b
r14527: Fix build problems.
...
(This used to be commit 863ca4014d
)
2007-10-10 13:57:37 -05:00
Jelmer Vernooij
8528016978
r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
...
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51
)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
ae92d63ce1
r14446: demonstrate the notifies on files are not allowed
...
metze
(This used to be commit 74868726ae
)
2007-10-10 13:57:26 -05:00
Stefan Metzmacher
d16d8e1dcd
r14444: - make clear that a canceled notify directly returns without any other event
...
- test mkdir - rmdir - mkdir - rmdir sequence, this gets 4 notify events back
- add some comments to the multiple directory handle and buffered cases
metze
(This used to be commit e2b3816212
)
2007-10-10 13:57:25 -05:00
Stefan Metzmacher
3f6ede84da
r14440: demonstrate that the smbpid is attached to a session (vuid),
...
so SMBexit() only closes files for the given user session and the given PID
can someone check if samba3 passes this test, please?
metze
(This used to be commit fd291ff003
)
2007-10-10 13:57:25 -05:00
Jelmer Vernooij
eefe30b7d8
r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
...
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b
)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d
r14363: Remove credentials.h from the global includes.
...
(This used to be commit 98c4c30513
)
2007-10-10 13:57:14 -05:00
Stefan Metzmacher
03bd05947b
r14316: don't zero the smb_handle after it was set:-)
...
metze
(This used to be commit 74472ed8be
)
2007-10-10 13:57:11 -05:00
Stefan Metzmacher
a1b295ed48
r14256: - rename smb_file -> smb_handle
...
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo
metze
(This used to be commit be6d5298a2
)
2007-10-10 13:57:06 -05:00
Andrew Tridgell
7f0c7702f6
r14208: removed use of req->flags2 inside the ntvfs layer. This should help
...
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
(This used to be commit b78abbbce6
)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
307e43bb56
r14173: change smb interface structures to always use
...
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2
the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2
metze
(This used to be commit 2ef3f59709
)
2007-10-10 13:56:57 -05:00
Andrew Tridgell
2b051070cb
r14059: change notify is quite a bit more complex than we thought. These tests
...
show that w2k3 buffers notifies on directories where you have used
notify previously, thus giving you notifications on events that happen
even when you do not have a current notify call outstanding. This
makes it much easier for clients to avoid race conditions, which is
probably why it is done. It also means that associating change
notifies in Samba with outstanding change notify requests won't work -
instead we have to associate them with buffers on open directories.
(This used to be commit 8c5c8846f5
)
2007-10-10 13:52:39 -05:00
Jelmer Vernooij
f8fdbc967c
r13944: Yet another round of splitups.
...
(This used to be commit f87debeb12
)
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
dfc517b053
r13658: More moving around of files:
...
- Collect the generic utility functions into a lib/util/ (a la GLib is
for the GNOME folks)
- Remove even more files from include/
(This used to be commit ba62880f5b
)
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
a920f2f9a8
r13004: fix compiler warnings
...
metze
(This used to be commit 833efdf8a9
)
2007-10-10 13:51:16 -05:00
Volker Lendecke
1971eebb10
r12765: Revert an accidential commit
...
(This used to be commit d96c84126d
)
2007-10-10 13:49:51 -05:00
Volker Lendecke
53091bf83e
r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
...
trusted domains.
Volker
(This used to be commit 8b8bb85ad3
)
2007-10-10 13:49:51 -05:00
Jelmer Vernooij
78c50015bb
r12694: Move some headers to the directory of the subsystem they belong to.
...
(This used to be commit c722f665c9
)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
25bb00fbcd
r12693: Move core data structures out of smb.h into core.h
...
torture prototypes in seperate header
(This used to be commit 73610639b2
)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -05:00
Andrew Tridgell
5e117701b4
r12549: fixed the problem with serialisation and the RAW-OPLOCK test
...
(This used to be commit ad3b828663
)
2007-10-10 13:47:56 -05:00
Jelmer Vernooij
2cd5ca7d25
r12542: Move some more prototypes out to seperate headers
...
(This used to be commit 0aca5fd513
)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
042a9958c8
r11639: fixed some create_time tests that should be change_time tests
...
(This used to be commit c4266c7f68
)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
498b2892dd
r11638: fixed handling of null volume name in RAW-QFSINFO test
...
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64c
)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
655138602c
r10912: added a test for supporting batch oplock upgrades
...
(This used to be commit 1183af06b7
)
2007-10-10 13:39:41 -05:00
Stefan Metzmacher
ab4d635b92
r10504: - seperate implementation specific stuff, from the generic composite
...
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.
NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
state in the _send() function. I haven't fixed this bugs in this
commit! We may need some composite_trigger_*() functions or so.
And maybe some other generic helper functions...
metze
(This used to be commit 4527815a0a
)
2007-10-10 13:38:57 -05:00
Tim Potter
8dbeab5cd2
r10257: strlen returns a size_t which can be 64 bits long.
...
(This used to be commit 4a4b053718
)
2007-10-10 13:38:12 -05:00
Jeremy Allison
0ac1490a89
r10132: Confirm that openX with OPEN_EXEC implies read only.
...
Jeremy.
(This used to be commit da70b2ab2d
)
2007-10-10 13:38:01 -05:00
Tim Potter
9a56cb39b3
r9876: Fix some 64-bit warnings for Itanium machine.
...
(This used to be commit 9e375d82e8
)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
b674411eb4
r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
...
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652
)
2007-10-10 13:35:01 -05:00
Volker Lendecke
11f4803d00
r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with
...
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled.
Jeremy, please look closely at this. You can easily verify this by adding a
smb_msleep(100) to the top of open_file_ntcreate and run the new samba4
torture test. It does also happen without the msleep, but not as reliably.
Thanks,
Volker
(This used to be commit c803d4c9a5
)
2007-10-10 13:34:32 -05:00
Tim Potter
2fa50ab671
r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
...
names.
(This used to be commit 26b191b3c9
)
2007-10-10 13:31:33 -05:00
Andrew Tridgell
c3ee5d6f75
r9121: use the older non-passthru level for setting delete on close
...
disposition in the RAW-UNLINK test (this allows it to work with netapp
servers)
(This used to be commit 4f9cfd10bf
)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
d07f01b203
r9046: fixed display of privileges in RAW-ACLS test
...
(This used to be commit 0ab907af6a
)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
89cbdf8ed0
r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
...
form
(This used to be commit 02a78d06e1
)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
177423e88c
r9044: added a comment so you can see what this test does :-)
...
(This used to be commit ee27441608
)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
089fa95704
r9043: fixed return code in RAW-STREAMS test
...
(This used to be commit 45e41010da
)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8a0b044d20
r9042: fixed the valgrind error in the RAW-SFILEINFO test
...
(This used to be commit eaf079e33f
)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8d5f642ee1
r9008: check the return status for the directory handle creations
...
(This used to be commit 57e44300f7
)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
d4c4f16f94
r9006: expanded RAW-UNLINK test to test directory delete on close with non-empty directory,
...
as per discussions during jeremys talk at cifs2005
(This used to be commit b28b2108c7
)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
7937a353db
r9003: add testing for non-empty directory delete on close
...
(This used to be commit caca1f191d
)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
5f0c8df55a
r8773: fixed another dependency on directory ordering in RAW-SEARCH
...
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)
(This used to be commit 5edeb56bf0
)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
6b2d6ce604
r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
...
(This used to be commit 8c4d0cd7b7
)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
2c457eca25
r8712: cleanup old search test code to use talloc
...
(This used to be commit 1d830bcd47
)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
92a6cd373a
r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
...
(This used to be commit 92afff5fe7
)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
a4428c814a
r8634: we are still getting occasional test failures due to disk space
...
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.
(This used to be commit 668dd29259
)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
8e824d4d04
r8537: cope better with the small file handle limit on some systems in the build farm
...
(This used to be commit 6202a9d099
)
2007-10-10 13:29:36 -05:00
Andrew Tridgell
9953452d49
r8522: fixed another couple of size_t warnings
...
(This used to be commit d2c9285483
)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
e835621799
r8520: fixed a pile of warnings from the build farm gcc -Wall output on
...
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.
The main fixes are:
- assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats
- use of NULL format statements to perform dn searches.
- assumption that sizeof() returns an int
(This used to be commit a58ea6b385
)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
a2a838d72c
r8497: prevent a fd leak in RAW-SEARCH test
...
(This used to be commit efb151ba79
)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
060113de98
r8495: allow for up 10% change in allocated disk space during QFSINFO tests
...
(This used to be commit 16d752b551
)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
fc56396261
r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms
...
(This used to be commit 9264555541
)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
bcec34683d
r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33
...
(This used to be commit e499b1abae
)
2007-10-10 13:23:09 -05:00
Volker Lendecke
8e05fc188e
r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
...
write. Test that.
Volker
(This used to be commit 2ad02d5e09
)
2007-10-10 13:19:22 -05:00
Volker Lendecke
824f5b4781
r8185: Delete on close on directories:
...
Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns
DIRECTORY_NOT_EMPTY.
Volker
(This used to be commit 5680f34778
)
2007-10-10 13:19:18 -05:00
Volker Lendecke
44b66a73d3
r8176: Exploring the share mode database...
...
A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)
Volker
(This used to be commit dbc7a1a978
)
2007-10-10 13:19:17 -05:00
Jeremy Allison
3de3d6a02d
r8174: Check DOS error codes in torture chkpath test.
...
Jeremy.
(This used to be commit ff58ecad04
)
2007-10-10 13:19:17 -05:00
Andrew Tridgell
6667788706
r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
...
(This used to be commit acd9fad3a4
)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
a703329908
r8122: more fixes from testing dos error code handling against w2k3
...
(This used to be commit b71fbcf5e2
)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
19f2cd199f
r8118: remove a debugging hack that should not have been in the last commit
...
(This used to be commit 0f76449a08
)
2007-10-10 13:19:10 -05:00