summaryrefslogtreecommitdiff
path: root/source4/torture/raw
AgeCommit message (Collapse)AuthorFilesLines
2009-12-03s4 torture: Add a new RAW-OPLOCK test: BATCH26Tim Prouty1-0/+108
Try a rename with a wide-open share mode on an already open file and the there is still share mode contention. For the reason why see: http://social.msdn.microsoft.com/Forums/en-US/os_fileservices/thread/3ca14dc9-da1f-4786-a8f7-a86e9903db0c Msft's anser: After further review, The reason for server to fail with sharing violation is that the windows server that executes a path-based rename request opens the file for DELETE access, but only with FILE_SHARED_READ as ShareAccess . Therefore, the existing open(frame 76), which has shared read/write/delete , is compatible with the Windows servers access mode (DELETE), but Windows servers open is not compatible with access mode in existing open. Note that it is correct to state that the logic in Windows server could have been written to allow shared read/write/delete in which case it would succeed as you mention. The behavior here is historical based on the existing implementation.
2009-12-03s4 torture: Close the third handle in RAW-OPLOCK-BATCH22Tim Prouty1-2/+5
2009-12-03s4 torture: Convert an error to a warning in RAW-OPLOCK-BATCH22Tim Prouty1-12/+27
Some servers choose to mark a client as bad if they fail an oplock break request by timing out (win7 is an example). Once the client is marked as bad, future oplock requests will timeout instantly. This causes subsequent runs of this test to fail, so rather than erroring out as a failure, a warning is printed instead. There is also a bug in w2k3 where it was incorrectly returning contending a share mode lock. It worked in XP and has been re-fixed in win7. This can also now be run against samba3.
2009-12-03s4 torture: Convert to a more modern version of read in RAW-OPLOCK-BATCH4Tim Prouty1-5/+7
2009-12-03s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty1-7/+13
breaks
2009-12-02s4/torture: add multiple lock cancel testSteven Danneman1-2/+91
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-02s4/torture: add addition multiple lock testsSteven Danneman1-0/+67
* 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-02s4/torture: fix build warnings by removing unecessary constSteven Danneman1-1/+1
2009-12-02s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman1-6/+27
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-01s4 torture: Change oplock to use passthrough for exclusive3/batch11Tim Prouty1-2/+2
In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended
2009-12-01s4 torture: Update RAW-SFILEINFO-END-OF-FILE to test some additional corner ↵Tim Prouty1-19/+104
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-01s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by defaultTim Prouty1-7/+5
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-01s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty1-5/+0
in multiple files
2009-12-01s4:torture/raw/lock - Fix "discard const" warnings by introducing ↵Matthias Dieter Wallnöfer1-3/+6
"discard_const_p"s
2009-11-27s4-torture: mark s4 as doing valid lock range tests on SMBAndrew Tridgell1-1/+2
2009-11-25s4 torture: Change RAW-OPLOCK to use the documented version of ↵Tim Prouty1-4/+4
SET_END_OF_FILE_INFO The passtrhough version of SET_END_OF_FILE_INFO is tested in RAW-SFILEINFO-END-OF-FILE. Additionally, the first opener is changed to use SHARE_WRITE for the share mode since SET_END_OF_FILE_INFO actually writes data to the file via truncating/extending.
2009-11-25s4 torture: Add two new setfileinfo testsTim Prouty1-0/+191
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-25s4 torture: Split up the torture suite setup for RAW-SFILEINFOTim Prouty2-10/+21
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-24RAW-PING-PONG: use timeval_current/timeval_elapsed instead of ↵Stefan Metzmacher1-19/+5
start_timer/end_timer metze
2009-11-21s4:torture/raw/unlink - Remove unused variable and labelMatthias Dieter Wallnöfer1-2/+1
2009-11-02s4:torture/raw/samba3misc - Add "discard_const_p" macro before a stringMatthias Dieter Wallnöfer1-1/+1
2009-10-29Change RAW-STREAMS for s3 to allow rename over an existing stream,Jeremy Allison1-1/+2
we need to file a CAR to find out why Windows gives INVALID_PARAMETER for this. Jeremy.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell21-49/+0
This reduces compile time somewhat.
2009-10-18s4-torture: fixed the streams tests for Samba4Andrew Tridgell1-23/+29
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-17Fix the smbtorture4 build. root_fid is a "union smb_handle". tridgeJeremy Allison1-1/+1
please check. Jeremy.
2009-10-17Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison14-307/+658
2009-10-17s4-torture: fixed the default ACL for s4Andrew Tridgell1-13/+41
s4 returns group and world ACEs in the default acl, based on unix permissions
2009-10-17s4-torture: minor debugging enhancementsAndrew Tridgell1-3/+3
2009-10-17s4-torture: add a special check for administrators and privilegesAndrew Tridgell1-12/+12
lsa privileges calls don't expand groups. darn.
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell13-111/+111
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-12torture: fixed socket leak in BENCH-TCON testAndrew Tridgell1-0/+1
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-07Exteded RAW-RENAME test to catch regressions in bug 6781.Jeremy Allison1-4/+40
Jeremy.
2009-10-02s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer1-4/+2
2009-10-01s4/torture: Add two new SMB RAW-OPEN testsAravind Srinivasan1-1/+170
* 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-01s4/torture: convert printf to torture_comment() in RAW-OPENAravind Srinivasan1-58/+103
Allows "make test" and other harnesses to print cleaner output.
2009-10-01s4/torture: fix typo in test commentSteven Danneman1-1/+1
2009-09-29s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14Steven Danneman1-11/+12
We were pulling junk memory for our stream names after the reordering of the struct definition.
2009-09-29s4/torture: Allow receiving of oplock break requests in any orderSteven Danneman1-88/+159
Previously, the oplock torture tests, being single threaded, required the server to return oplock break requests, and other SMB packets in a specific order for us to verify "correctness". Of course, in several cases the protocol allows the break packets, especially breaks to levelII to come back in any order. With tevent we're now able to wait for oplock breaks in the middle of a torture test. I've added a helper to do this, and modified all oplock tests to allow returning of oplock breaks in any order.
2009-09-29s4/torture: convert printf to torture_comment()Aravind Srinivasan1-2/+4
Allows "make test" and other harnesses to print cleaner output.
2009-09-28unlink defer torture testTim Prouty1-0/+100
2009-09-24s4 torture: Fix RAW-STREAMS to request more specific permissionsTim Prouty1-1/+2
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-10s4/torture: don't mix declarations and codeAndrew Tridgell1-22/+22
2009-09-09s4/torture: add new SMB oplock testsAravind Srinivasan1-2/+397
* test if oplocks are granted when requesting delete-on-close * test how oplocks are broken by byte-range-lock requests
2009-09-09s4/torture: convert printf to torture_comment()Aravind Srinivasan1-6/+9
Allows "make test" and other harnesses to print cleaner output.
2009-08-06s4 torture: Extend the RAW-RENAME test to more fully test directory renames.Tim Prouty1-0/+50
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-05s4 now supports the large readx extensionAndrew Tridgell1-6/+11
2009-08-05skip the readbraw tests if the server does not support itAndrew Tridgell1-0/+5
This allows the RAW-READ test to pass against w2k8
2009-07-06RAW-LOCK: fix a compiler warning and make a global static constStefan Metzmacher1-3/+2
metze
2009-07-06RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4Stefan Metzmacher1-35/+50
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-06-29Adds the impersonation level in ntcreatex requests to SAMBA 3 misc torture testMatthias Dieter Wallnöfer1-0/+4
Specifies the impersonation level according to the reporter commit in bug #6283