1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

504 Commits

Author SHA1 Message Date
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