1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

870 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
87b887f48f s4:torture - remove unreachable statements to quiet warnings of Solaris "cc" 2010-11-29 14:48:12 +01:00
Matthias Dieter Wallnöfer
2a25f7515a s4:torture - suppress printf "%llu" on uint64_t variables warnings
The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on
all regular platforms does also. Therefore simply add a cast to
"unsigned long long".
2010-11-01 11:31:33 +01:00
James Peach
c8000c94a5 smbtorture: Fix typo in status message. 2010-10-20 10:07:33 -07:00
Björn Jacke
2b254c814b s3/s4: merge msleep and smb_msleep
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Andrew Bartlett
a394a8104e torture/raw Allow one more 'not implemented' status return as a valid response
The Samba4 server responds to most ioctl calls with NT_STATUS_NOT_SUPPORTED

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Günther Deschner
fe59119e06 s4-smbtorture: try FSCTL_FIND_FILES_BY_SID with random blob data in RAW-IOCTL.
Guenther
2010-09-16 00:18:09 +02:00
Björn Jacke
19a3633e6e s4/torture: use time_mono for deltas in lock test 2010-09-10 11:59:17 +02:00
Matthias Dieter Wallnöfer
a133d83607 s4:torture/raw/notify.c - freeable stuff shouldn't be "const" 2010-08-27 19:11:44 +02:00
James Peach
effc61cb78 smbtorture: Make SAMBA3CASEINSENSITIVE report failures properly. 2010-08-17 20:19:35 -07:00
James Peach
44de839dab smbtorture: Don't crash RAW-QFILEINFO if there's no alternate name. 2010-08-11 11:11:28 -07:00
Andrew Tridgell
6b266b85cf s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Steven Danneman
85504ae6ff s4:libcli: Modify S4 client library to check for proper CN alignment
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in
change notify replies must be aligned to 4-byte boundaries.

This updates s4 client to check for this restriction and also adds a
torture test which should tickle a server into giving unaligned
structures if it doesn't follow the spec.
2010-07-06 13:28:02 -07:00
Aravind Srinivasan
7e49a58ab9 s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-24 08:22:25 -07:00
Aravind Srinivasan
c668b21cd6 s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
Also add a test to make sure setting the directory attribute is
disallowed.

Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-21 17:08:41 -07:00
Aravind Srinivasan
6da487580e s4 torture: RAW-SEARCH: break out some of the old search levels
* Added two new parameters: raw_search_search and raw_ea_size which
  can be enabled/disabled based on whether the server supports
  RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels

* Skip unsupported levels from the server and give a warning rather
  than failing.

Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-15 13:48:15 -07:00
Tim Prouty
2170a59215 s4 torture: RAW-SEARCH: Only test supported info levels 2010-06-15 13:48:15 -07:00
Zachary Loafman
2977c659ea s4 torture: RAW-WRITE should check lockread_supported
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-14 17:13:44 -07:00
Matthias Dieter Wallnöfer
bd3e70c1be s4:torture/raw/open.c - remove unused variables and fix error handling 2010-05-21 23:35:58 +02:00
Jelmer Vernooij
b8268cf7b0 s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Jeremy Allison
0d51bab61e Now we behave as Windows does, remove a Samba3 specific test return.
Jeremy.
2010-05-13 21:27:24 -07:00
Stefan Metzmacher
e1e2195a4a s4:torture/rpc: rename rpc.h => torture_rpc.h
The reason for this is that some systems include
<rpc/rpc.h> from within system headers. HP-UX 11.00
does so somewhere deep inside of <shadow.h>.

For torture/winbind/struct_based.c <rpc/rpc.h> resolves
to torture/rpc/rpc.h and breaks the build.

metze
2010-04-14 20:27:11 +02:00
Jelmer Vernooij
3a34b5f35e subunit: Remove more test output that could be interpreted by subunit. 2010-04-11 20:57:33 +02:00
Jelmer Vernooij
7da94cc4a6 subunit: Support formatting compatible with upstream subunit, for consistency.
Upstream subunit makes a ":" after commands optional, so I've fixed any
places where we might trigger commands accidently. I've filed a bug
about this in subunit.
2010-04-11 20:57:33 +02:00
Matthias Dieter Wallnöfer
5b824eb17b s4:torture - remove unused variables 2010-04-06 14:54:11 +02:00
Andrew Tridgell
4fc0a6ab31 s4-torture: using typeof() is not portable
this failed to compile on solaris8 with cc
2010-03-31 10:23:17 +11:00
Andrew Tridgell
700f464951 s4-torture: use TYPESAFE_QSORT() in smbtorture 2010-02-13 22:36:12 +11:00
Andrew Tridgell
6cf5bdd3d3 s4-torture: handle NT_STATUS_CONNECTION_RESET
a CONNECTION_RESET is now the normal "client disconnect" status code
2010-02-04 21:22:43 +11:00
Matt Kraai
d8071e7ed7 Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Steven Danneman
5323fe99c3 s4/torture: Parameterize output in LOCK tests based off server support
Two new torture parameters:

* smbexit_pdu_support: if the Server supports the Exit command

* range_not_locked_on_file_close: whether the server returns the
  NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a
  pending lock request.  Windows returns this error, though per the
  spec, this error should only be returned to an unlock request.
2010-01-10 16:12:44 -08:00
Tim Prouty
57be1d07af s4 torture: Add RAW-OPEN-NTCREATEDIR to test error checking for open directories as files 2010-01-07 15:32:27 -08:00
Steven Danneman
71a40d7e2c s4/torture: fix small bug in lock test
Cleanup path should unlock, not cancel existing locked range.
2010-01-06 18:48:10 -08:00
Steven Danneman
655bdb19bd s4/torture: add more lock cancellation tests
* Test the SMB1 behavior when multiple lock ranges are requested, pend,
  and then are cancelled.  The entire LockingAndX request fails.
2010-01-06 18:48:10 -08:00
Tim Prouty
fd5350de1f s4 torture: Add RAW-OPLOCK-EXCLUSIVE7 which is similar to BATCH19 2009-12-21 17:27:37 -08:00
Tim Prouty
43a8b49f83 s4 torture: Update raw oplock to use win7 as the baseline for rename oplock break behavior 2009-12-21 17:27:36 -08:00
Tim Prouty
c33988c040 s4 torture: Be more permissive with share modes for oplock testing
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-21 17:27:36 -08:00
Tim Prouty
fd0c3a2264 s4 torture: Do a better job of closing open files in RAW-OPLOCK. 2009-12-21 17:27:36 -08:00
Andrew Tridgell
87f28cc267 s4-torture: another unsigned comparison bug 2009-12-21 23:41:08 +11:00
Zachary Loafman
daa561d75b s4 torture: Add test to show archive bit behavior with directories
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-18 10:52:45 -08:00
Tim Prouty
9b869230a7 s4 torture: Fix RAW-STREAMS-DELETE to pass against samba3 2009-12-18 10:52:45 -08:00
Tim Prouty
cfbf62dbfd s4 torture: RAW-STREAMS-NAMES Make sure the create time of the streams are different from the base file 2009-12-17 18:13:54 -08:00
Tim Prouty
c3582f923e s4 torture: Add RAW-STREAMS-RENAME3 to show error when trying to overwrite a stream with an open handle
A normal file overwrite in this case would return NT_STATUS_ACCESS_DENIED,
but if a stream is the target NT_STATUS_INVALID_PARAMETER is returned.
2009-12-17 18:13:48 -08:00
Tim Prouty
f8bb5a60e7 s4 torture: Parameterize streams delete behavior rather than commenting out the check. 2009-12-17 17:58:35 -08:00
Tim Prouty
f02206d933 s4 torture: RAW-STREAMS-CREATEDISP Use a normal deny mode 2009-12-17 17:58:35 -08:00
Tim Prouty
5c13a90abe s4 torture: close handle instead of using exit 2009-12-17 17:58:34 -08:00
Aravind Srinivasan
b85f6f63e6 s4 torture: Add new RAW-SEARCH test to explore strange max count behavior
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:51:36 -08:00
Aravind Srinivasan
8ba02d9ed9 s4 torture: Update RAW-QFILEINFO to only test info levels that are supported by the server
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:40:05 -08:00
Zach Loafman
5930f770d2 s4 torture: Convert RAW-OPEN to suite form 2009-12-15 09:13:24 -08:00
Stefan Metzmacher
d3d2e3988f RAW-STREAMS: convert failing tests to torture api
This is needed as we want to mark failing tests as
known failures.

metze
2009-12-08 13:50:15 +01:00
Tim Prouty
1bf825b6f8 s4 torture: Cleanup RAW-ACLS a bit
Don't check SEC_DESC_DACL_AUTO_INHERITED right now
Disable RAW-ACLS-INHERITFLAGS for the short term
Update samba4's knownfail accordingly
2009-12-07 17:59:28 -08:00
Tim Prouty
f717a79eff s4 torture: Add a new torture:hide_on_access_denied parameter
It appears some newer versions of windows return
NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied
rather than NT_STATUS_ACCESS_DENIED.  I'm not sure how this translates
to directory enumeration yet, but for now make this a parameter that
can be checked in the various torture tests.

This also gets RAW-ACLS and SMB2-CREATE passing against win7.
2009-12-07 16:54:17 -08:00
Zack Kirsch
1724273ab9 s4 torture: RAW-ACL Improvements
- Change RAW-ACLS test suite so each test can be run individually.
- Add verify_sd() and verify_attrib() helper functions.
- Change test_nttrans_create() to work for both files and directories.
- Fix a segfault in test_inheritance() when the test errors out early.
- test_sd_get_set() does not pass against XP or Vista, so it is no longer added
  to the RAW-ACLS test suite.
- Minor fixes to test_inheritance().
- New INHERITFLAGS test, which tests the auto inheritance flags a bit more.
- printf -> torture_comment / torture_warning / torture_result
2009-12-07 16:54:16 -08:00
Tim Prouty
919440a2aa s4 torture: Convert RAW-STREAMS to a set of test suites rather than a monolithic test 2009-12-07 16:52:16 -08:00
Tim Prouty
6bc8a2bf0a s4 torture: Update RAW-RENAME to pass against win7 2009-12-07 16:52:15 -08:00
Tim Prouty
cd72301efa s4 torture: Add a new RAW-STREAMS test to simulate the summary tab 2009-12-07 16:52:15 -08:00
Tim Prouty
5d66d43667 s4 torture: Fix the streams create disposition tests to actually return an error on failure 2009-12-07 16:52:15 -08:00
Steven Danneman
47f5aac39d s4/torture: add test for zero byte read contention with byte range locks 2009-12-07 16:10:25 -08:00
Steven Danneman
b4c72e44a8 s4/torture: fix >80 column spacing issues 2009-12-07 16:10:24 -08:00
Jeremy Allison
1d3942c534 Make smbtorture4 match Windows behavior.
Jeremy.
2009-12-04 14:02:52 -08:00
Zachary Loafman
3507350ad2 s4 torture: Fix call to smbcli_open
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:46:29 -08:00
Zachary Loafman
a3df55b26f s4 torture: Make RAW-SEARCH pass against win7
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:46:25 -08:00
Zachary Loafman
2dc5bd19d4 s4 torture: Parameterize WRITE_AND_CLOSE support
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:21:22 -08:00
Zachary Loafman
f26a500d9f s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READ
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:21:22 -08:00
Zachary Loafman
5882282dea s4 torture: Allow READ to be parameterized, add more readx tests
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03 20:21:22 -08:00
Tim Prouty
15e1c61027 s4 torture: Add a new RAW-OPLOCK test: BATCH26
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-03 18:54:52 -08:00
Tim Prouty
8f7e5732ef s4 torture: Close the third handle in RAW-OPLOCK-BATCH22 2009-12-03 18:54:52 -08:00
Tim Prouty
522d6bc588 s4 torture: Convert an error to a warning in RAW-OPLOCK-BATCH22
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-03 18:54:52 -08:00
Tim Prouty
fc7832602d s4 torture: Convert to a more modern version of read in RAW-OPLOCK-BATCH4 2009-12-03 18:54:52 -08:00
Tim Prouty
af8b7857ca s4 torture: Allow some implementations to break from level1 to none with two breaks 2009-12-03 18:54:52 -08:00
Steven Danneman
48358b3eaa s4/torture: add multiple lock cancel test
See what happens when we have multiple outstanding lock requests and
we try to cancel both of them within a single LockingAndX.

On Windows, it seems only the first lock in the array is cancelled,
and the second is left pending.  Though, this behavior goes against
the MS-CIFS spec.
2009-12-02 17:28:52 -08:00
Steven Danneman
ad9c5a7b88 s4/torture: add addition multiple lock tests
* test that 2 locks in a single LockAndX are transactional
* test that 1 unlock and 1 lock in a single LockAndX are not
  transactional
* test that SMB2 doesn't like mixed lock/unlock in a single
  PDU
2009-12-02 17:28:52 -08:00
Steven Danneman
dfbb92e2a1 s4/torture: fix build warnings by removing unecessary const 2009-12-02 17:28:51 -08:00
Steven Danneman
438b7c41ae s4/torture: Add target functionality parameters to SMBv1 BRL tests
Abstract the server requirements to pass some BRL tests.

* The new default for >64bit lock tests, is that the server should
  return STATUS_INVALID_LOCK_RANGE.
* Add parameter for targets that don't implement DENY_DOS
2009-12-02 17:28:51 -08:00
Tim Prouty
4e8b6c5992 s4 torture: Change oplock to use passthrough for exclusive3/batch11
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-12-01 11:12:51 -08:00
Tim Prouty
5035a90005 s4 torture: Update RAW-SFILEINFO-END-OF-FILE to test some additional corner cases
It turns out setting the end-of-file with Trans2SetPathInfo using the
snia spec's info level will attempt to open the file, enforcing share
modes, but then subsequentlys fail the setpathinfo with a dos error of
INVALID_LEVEL.  Doing a Trans2SetFileInfo with either end-of-file info
level succeeds as expected.
2009-12-01 11:12:51 -08:00
Tim Prouty
66bf780e6e s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by default
Since the windows behavior appears to be a bug, only check for
the windows-style share mode bug if target=<windows variant> is
specified
2009-12-01 11:12:51 -08:00
Tim Prouty
2738e31674 s4 torture: Move target macros to a common header instead of redefining them in multiple files 2009-12-01 11:12:51 -08:00
Matthias Dieter Wallnöfer
2d1bd87f73 s4:torture/raw/lock - Fix "discard const" warnings by introducing "discard_const_p"s 2009-12-01 16:48:47 +11:00
Andrew Tridgell
7359a22219 s4-torture: mark s4 as doing valid lock range tests on SMB 2009-11-27 19:42:10 +11:00
Tim Prouty
b6f972222f s4 torture: Change RAW-OPLOCK to use the documented version of 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-11-25 08:45:58 -08:00
Tim Prouty
6074a058df s4 torture: Add two new setfileinfo tests
These tests expose a potential bug in winXP, win7, and likely others.
There is also a bug in samba where share modes aren't being enforced
where they should.

For more details see:
http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
2009-11-25 08:45:14 -08:00
Tim Prouty
ce9ac3a685 s4 torture: Split up the torture suite setup for RAW-SFILEINFO
A side effect of this change is that RAW-SFILEINFO now runs the whole
suite instead of just the first test.  I changed the name of the first
test to RAW-SFILEINFO-BASE and changed all of the selftest scripts
that call it.
2009-11-25 08:45:14 -08:00
Stefan Metzmacher
23d81904eb RAW-PING-PONG: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
2009-11-24 11:47:31 +01:00
Matthias Dieter Wallnöfer
5dc478e390 s4:torture/raw/unlink - Remove unused variable and label 2009-11-21 17:37:40 +01:00
Matthias Dieter Wallnöfer
3caaf6a84c s4:torture/raw/samba3misc - Add "discard_const_p" macro before a string 2009-11-02 16:36:51 +11:00
Jeremy Allison
e2c84f67a3 Change RAW-STREAMS for s3 to allow rename over an existing stream,
we need to file a CAR to find out why Windows gives INVALID_PARAMETER
for this.
Jeremy.
2009-10-29 16:38:34 -07:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Andrew Tridgell
9ae4daeb96 s4-torture: fixed the streams tests for Samba4
In some cases we were not doing streams tests on s4 that we should. In
others, we were calling tests that are known to fail on s4. Some of
those are a bit puzzling.
2009-10-18 15:06:13 +11:00
Jeremy Allison
d6351adca9 Fix the smbtorture4 build. root_fid is a "union smb_handle". tridge
please check.
Jeremy.
2009-10-17 12:56:15 -07:00
Jeremy Allison
7c51fa6d69 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-10-17 10:36:33 -07:00
Andrew Tridgell
dbebe0f621 s4-torture: fixed the default ACL for s4
s4 returns group and world ACEs in the default acl, based on unix
permissions
2009-10-17 13:01:04 +11:00
Andrew Tridgell
05f5f22361 s4-torture: minor debugging enhancements 2009-10-17 13:01:04 +11:00
Andrew Tridgell
7226ba73a0 s4-torture: add a special check for administrators and privileges
lsa privileges calls don't expand groups. darn.
2009-10-17 13:01:03 +11:00
Andrew Tridgell
3c028ff88b s4-smb: declare root_fid as a file handle
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-15 20:03:00 +11:00
Andrew Tridgell
893564bc64 torture: fixed socket leak in BENCH-TCON test
The BENCH-TCON test was leaving the socket open. A smbclie_tdis()
closes the tree connection, but does not close the socket.

This caused the build farm to run out of file descriptors
2009-10-12 16:11:53 +11:00
Jeremy Allison
46d1933240 Exteded RAW-RENAME test to catch regressions in bug 6781.
Jeremy.
2009-10-07 16:52:29 -07:00
Matthias Dieter Wallnöfer
44df2488e3 s4: fix various warnings (not "const" related ones) 2009-10-02 15:33:48 +02:00
Aravind Srinivasan
b529a1e987 s4/torture: Add two new SMB RAW-OPEN tests
* Add chained NTCREATEX_READX test which first tries to open/read
  a non-existant file failing on the open, then attempts the same
  operation on a file that does exist, opening and reading
  successfully.

* Add test for open_dispositions on directories.
2009-10-01 17:14:53 -07:00
Aravind Srinivasan
50db2902ee s4/torture: convert printf to torture_comment() in RAW-OPEN
Allows "make test" and other harnesses to print cleaner output.
2009-10-01 17:14:53 -07:00
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
Tim Prouty
cc3a6770c7 unlink defer torture test 2009-09-28 21:36:46 -07:00
Tim Prouty
ad96c11182 s4 torture: Fix RAW-STREAMS to request more specific permissions
This allows RAW-STREAMS to pass when the user isn't root on some
systems that don't give full access rights to non-root users.
2009-09-24 10:59:33 -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
09e9904f18 s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
2009-08-06 17:07:49 -07:00
Andrew Tridgell
8bba340e65 s4 now supports the large readx extension 2009-08-05 12:08:30 +10:00
Andrew Tridgell
88d206070d skip the readbraw tests if the server does not support it
This allows the RAW-READ test to pass against w2k8
2009-08-05 11:32:01 +10:00
Stefan Metzmacher
f5b07455d9 RAW-LOCK: fix a compiler warning and make a global static const
metze
2009-07-06 15:49:44 +02:00
Stefan Metzmacher
ad17cf1772 RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4
We now allow --target=w2k8.

The strange thing is that w2k8 and win7rc only do half of the timeout
that was given by the client.

metze
2009-07-06 15:37:48 +02:00
Matthias Dieter Wallnöfer
15013090df Adds the impersonation level in ntcreatex requests to SAMBA 3 misc torture test
Specifies the impersonation level according to the reporter commit in bug #6283
2009-06-29 18:04:24 +10:00
Volker Lendecke
3014753ebe Fix the posixtimedlock test
The previous version depended on the fact that smb_raw_lock_send just queued
stuff. This changed with ebf5523b6e.
2009-06-15 17:26:56 +02:00
Stefan Metzmacher
09f1754a9b RAW-LOCK: samba4 behaves like windows 7 in regard of locking error codes
metze
2009-04-25 03:16:11 +02:00
Stefan Metzmacher
4ab243bcab s4:torture: use torture api instead of printf for RAW-LOCK
metze
2009-04-25 03:15:58 +02:00
Stefan Metzmacher
88e9f72473 s4:tortore: use torture api instead of printf in RAW-RENAME
metze
2009-04-25 03:15:55 +02:00
Zack Kirsch
108cf27bb1 s4 torture: Addition to RAW-BENCH-LOCK to take a configurable number of locks before starting the test
This can be useful for benchmarking as well as stress testing.
2009-04-01 20:59:52 -07:00
Zach Loafman
9d95f8704d s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/g 2009-04-01 20:59:52 -07:00
Tim Prouty
f92140b716 s4 torture: Remove unused parameter 2009-04-01 20:02:31 -07:00
Tim Prouty
5000640bf4 s4 torture: Add new streams oplock test 2009-04-01 20:02:31 -07:00
Andrew Tridgell
a67bc41d6b added a test that triggers a bug in the Samba3 notify code
The Samba3 internal notify code doesn't work correctly when there is
more than one tree connect to the same smbd process. This change to
the RAW-NOTIFY test triggers the bug.
2009-03-10 15:12:48 +11:00
Jeremy Allison
9569d979de And the prize for the most pain caused in the build farm for a simple
typo goes to.....
Tim Prouty !!!!
Sorry Tim, nice test but you made a typo in passing in
the size of an array so we were reading uninitialized
memory :-).
That took far longer than it should have to track down...
(%$&#ing build system....).
The build farm should now slowly go back to normal.
Jeremy.
2009-02-27 20:57:49 -08:00
Jeremy Allison
bcadb77c18 Add another torture test inspired by George @ Apple.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.

I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).

Jeremy.
2009-02-26 10:13:57 -08:00
Jeremy Allison
cde5724780 Added torture test from a usage case from the Apple OS/X client.
Setting an attribute on a stream fnum must change the attribute
on the base file.
Jeremy.
2009-02-24 17:32:22 -08:00
Zack Kirsch
2539d678f5 s4 torture: Add comment to clarify test 2009-02-20 16:42:50 -08:00
Steven Danneman
1a0aed36c0 Added torture tests to RAW-NOTIFY
* This adds a test to check the change notify behavior of the SMB server
  when more events have been generated than can be returned in a single
  change notify response.

* Second test makes sure the server doesn't return notification events
  for changes to the watched directory itself
2009-02-20 14:10:29 -08:00
Tim Prouty
6bac890533 s4 torture: Add new test to create a file with a lot of streams
This tests how streaminfo deals with large buffers

smbclient seems to have problems when the buffer size approaches the
max data size.  Also smbclient exposes no way to specify the max data
size that is sent in a trans2 request.  Instead it hardcodes in a much
larger max than windows uses.  For these reasons this test isn't
actually run, but is more of a reference for how windows handles
streaminfo buffers.
2009-02-18 23:48:35 -08:00
Tim Prouty
7a2c4acf86 s4 torture: Add additional streams create disposition test 2009-02-18 23:48:35 -08:00
Aravind Srinivasan
4d83d3a286 s4 torture: Add rename test to imitate the way OS X renames files
This tests for mis-behaved case-insensitive get_real_filename
implementations.
2009-02-13 13:18:54 -08:00
Zack Kirsch
4e1a4cbe1f s4 torture: Smbtorture additions for Windows BRL
- Adds a few new BRL tests to RAW-LOCK
- Adds a "win7" target to allow torture to handle protocol changes in
  windows 7
2009-02-11 12:23:52 -08:00
Zack Kirsch
307f4a66ac s4 torture: Two minor fixes to smbtorture BRL tests. 2009-02-11 12:23:32 -08: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
Tim Prouty
a65f1b9655 s4 torture: Add new create disposition test to RAW-STREAMS 2009-01-09 11:45:31 -08:00
Andrew Tridgell
c81863e868 added support for stream renames in Samba4
This allows the RAW-STREAMS test to work again. We still have some
limitations though:

  - renames of a stream to the default stream doesn't work
  - delete on close handling between streams and the main file 
    is still broken
2009-01-07 16:46:34 +11:00
Tim Prouty
2ddaebb2e1 s4 torture: Add more rename tests to RAW-STREAMS
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now.  Windows allow renaming a
stream to the default stream, but none of the current streams module
support this.  When this ability is added the check for samba can be
removed from this test.

This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
2009-01-04 19:31:30 -08: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
Jelmer Vernooij
dcc4081f75 Fix more compiler warnings. 2008-12-23 23:22:57 +01:00
Jeremy Allison
f1389a3950 Make it clearer when RAW-STREAMS is failing (don't always print names).
Jeremy.
2008-12-22 11:58:38 -08:00
Jeremy Allison
fcadf47a15 Add torture test for bug #5986 - streams rename, so we don't regress.
Jeremy.
2008-12-19 18:01:26 -08:00
Stefan Metzmacher
0df3036730 RAW-CHKPATH: not every server behaves like samba3...
metze
2008-12-18 13:31:41 +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
Jeremy Allison
3c5c3aaa74 Added torture test for doing an openX over a directory
to ensure we get the correct error message.
Jeremy.
2008-12-13 13:10:48 -08:00
Stefan Metzmacher
db369b5567 RAW-STREAMS: test stream renames
metze
2008-12-01 14:45:06 -08:00
Stefan Metzmacher
540e6376cc RAW-STREAMS: some more tests...
metze
2008-12-01 14:44:42 -08:00
Stefan Metzmacher
87bb9e178f RAW-STREAMS: test valid character in the range of 0x01 => 0x7F
metze
2008-12-01 14:43:58 -08:00
Stefan Metzmacher
b25d69e3a8 RAW-STREAMS: check some strange stream name combinations
metze
2008-12-01 14:43:23 -08:00
Stefan Metzmacher
9519d5dd71 RAW-CHKPATH: test every character in the range of 0x01 => 0x7F
metze
2008-12-01 14:42:48 -08:00
Jeremy Allison
d64caaf593 Remove debug code added in error.
Jeremy.
2008-11-08 23:06:21 -08:00
Jeremy Allison
813bf8b4f4 Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass RAW-ACL inheritance tests. Only access masks for SD get/set left to fix.
Jeremy.
2008-11-08 22:57:57 -08:00
Jeremy Allison
87f563c230 Start factoring out the inheritance differences.
Jeremy.
2008-11-06 01:58:56 -08:00
Jeremy Allison
bfc59f63f3 Pass all of RAW-ACLS except for inheritence. Working on that next.
Jeremy.
2008-11-04 01:34:08 -08:00
Volker Lendecke
0953688012 Trigger (and fix) a bug in Samba3 making smbd an infinite data source
A deferred open directly followed by a ulogoffX makes smbd3 send an infinite
stream of ERRinvuid replies :-(
2008-11-04 09:41:15 +01:00
Jeremy Allison
d98e48c7cb Be more verbose about a directory ACL error.
Jeremy.
2008-11-03 23:54:05 -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
b034c519f5 Add gensec_settings structure. This wraps loadparm_context for now, but
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
7a6190e9a7 Remove another use of global_loadparm. 2008-11-02 01:03:26 +01:00
Stefan Metzmacher
67c5aca1e8 RAW-ACLS: test the behavior of NULL DACL vs. empty DACL
This is based on the torture test attached to bug 4284
by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>.

metze
2008-10-28 17:14:53 +01:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02: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
63291018df Use const. 2008-10-10 15:00:35 +02:00
root
687ce0b60a Use a getatr instead to make things cleaner.
Jeremy.
2008-09-30 12:44:24 -07:00
Jeremy Allison
a238f17e27 Add in test name visible on the wire or in debug logs so you can see when particular tests start.
Jeremy.
2008-09-30 12:33:00 -07:00
Jelmer Vernooij
235b729309 Cope with API changes. 2008-09-30 03:07:08 +02:00
Jelmer Vernooij
181ee01da6 Pass session options around; saves another use of global_loadparm. 2008-09-30 02:47:19 +02:00
Jelmer Vernooij
4e8cb60222 Remove global_loadparm instance. 2008-09-30 02:11:55 +02:00
Jelmer Vernooij
c8a19f0b83 Pass options struct into session initialization functions rather than
using global_loadparm.
2008-09-30 01:29:53 +02:00
Jeremy Allison
857609732f Add test to show you can open for delete a readonly file.
Jeremy.
2008-09-26 15:20:27 -07:00
Andrew Tridgell
a22b9d6485 fixed the data in SAVEFILE op in RAW-OFFLINE
(This used to be commit 3441ea5df5)
2008-08-24 17:42:29 +10:00
Andrew Tridgell
b030743d74 show the bad data in RAW-OFFLINE
also show the worst case latencies so far, matching tsm_torture
(This used to be commit 5859bb337c)
2008-08-24 17:38:43 +10:00
Andrew Tridgell
3efd7d2262 don't use zero data for the first file in RAW-OFFLINE
the most likely bugs in HSM involve zero data, due to the
dm_punch_hole() request
(This used to be commit 330ab956ea)
2008-08-23 11:54:02 +10:00
Stefan Metzmacher
c1c6c1b609 RAW-OPEN: be more strict in create_option checking
metze
(This used to be commit d548f5dee5)
2008-08-14 15:14:53 +02:00
Andrew Tridgell
336f6810ce expanded the SMB2-CREATE and RAW-OPEN tests to explore more of how the
create options fields are supposed to work
(This used to be commit 0576875ecc)
2008-08-14 17:26:30 +10:00
Volker Lendecke
853ef0d5ef Fix RAW-OPEN against Samba3
This test assumed that fnums are recycled immediately after a close. This is
not true on Samba 3.

Andrew B., I assume this is just a bug in the test. Assuming recycled fnums
might be true on Windows and Samba 4, but I don't think we should assume this
everywhere.

Volker
(This used to be commit a4c3a59d47)
2008-07-19 12:47:31 +02:00
Andrew Bartlett
853194c308 More 'must be ignored' options from the MS-SMB doc.
Also in particular the 'sync' flags (which Samba has traditionally
ignored).

Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.

Andrew Bartlett
(This used to be commit 370bb39cd7)
2008-07-18 18:40:19 +10:00
Andrew Bartlett
e92125e631 Ignore and handle more NT Create & X options.
The MS-SMB document explains that some of these options should be
ignored.  The test proves it.

/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */

If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */

Andrew Bartlett
(This used to be commit 502739ff90)
2008-07-16 14:00:18 +10:00
Andrew Tridgell
cf4899cf4c check use of mincnt past EOF in SMB
(This used to be commit 763c9d344f)
2008-05-26 15:00:56 +10:00
Stefan Metzmacher
2f653e814a RAW-STREAMS: better test the bahavior of streams on directories
Note: this has a samba3 specific code path, which we should fixed.

metze
(This used to be commit 5c5c866838)
2008-05-23 09:55:16 +02:00
James Peach
9a975a868e smbtorture: Add RAW-BENCH-TCON benchmark.
Add a simple test to benchmark the rate at which a server can accept
new tree connections. You can tune the length of time to run the
benchmark for and the number of parallel connections to make.
(This used to be commit ea3f4b9305)
2008-05-20 11:35:32 -07:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00
Simo Sorce
7f464f0628 Fix more failing tests to pass the event context.
(This used to be commit d6c5d8baf0)
2008-04-22 16:40:44 -04:00
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