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

433 Commits

Author SHA1 Message Date
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d49087)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99)
2007-10-10 14:37:24 -05:00
Volker Lendecke
c5c8a33831 r20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
particular the NT_STATUS_INVALID_PARAMETER thing was badly wrong. Remove the
changes based on it. Using gentest is much more effective in this respect, but
it will take a while to figure out the wildcard error handling of W2k3.

Volker
(This used to be commit 33d842e27d)
2007-10-10 14:37:18 -05:00
Volker Lendecke
dff70f76bc r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.

Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.

Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.

Volker
(This used to be commit 838afa8f7d)
2007-10-10 14:37:15 -05:00
Volker Lendecke
aeda6017ac r20613: The individual tests are fine, I did run samba3badpath, but raw-samba3hide
left test.txt with permissions 000 behind...

Volker
(This used to be commit fdd501f803)
2007-10-10 14:37:14 -05:00
Volker Lendecke
36f78c139a r20609: Additional torture test for our bad_path handling. Most of it is disabled for
now, there are calls (for example trans2ffirst) which are quite dubious.

Volker
(This used to be commit 79846f09b9)
2007-10-10 14:37:13 -05:00
Volker Lendecke
3bc9704ce0 r20595: W2k and XP don't always show the top directory as hidden, w2k3 does. I think
Samba should follow w2k3 in this respect.

Volker
(This used to be commit 6094ee9df5)
2007-10-10 14:37:11 -05:00
Volker Lendecke
9e1a690d28 r20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
and then remove perms from the parent dir....

Volker
(This used to be commit f24c505257)
2007-10-10 14:36:53 -05:00
Volker Lendecke
0221d44ef4 r20549: obvious bug fix..
(This used to be commit f0aa63e390)
2007-10-10 14:36:52 -05:00
Volker Lendecke
cc8e2febb8 r20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns
HIDDEN.

Volker
(This used to be commit 83a2091206)
2007-10-10 14:36:02 -05:00
Volker Lendecke
d1e3dccab6 r20497: Two changes to RAW-OPEN that Samba does not fulfil:
Samba3 returns the SPARSE flag for files with size > allocation, and on many
configs Samba3 does not support EAs. Cope with both.

Tridge, please check this is acceptable for this test.

Volker
(This used to be commit 4df4d37c3d)
2007-10-10 14:36:01 -05:00
Volker Lendecke
e1c244a1cf r20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
we have any?? ;-), so don't mark failure to correctly cope with the close
write time as critical.

Volker
(This used to be commit 42070b09cb)
2007-10-10 14:35:58 -05:00
Volker Lendecke
04b9446b2a r20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
Samba3. This is a known deficiency also taken care of in the base-delete
test.

Volker
(This used to be commit 6b91bb93fa)
2007-10-10 14:35:56 -05:00
Volker Lendecke
b5a932e13a r20311: Check one more samba3 error path for t2mkdir
(This used to be commit 0f018cca6f)
2007-10-10 14:29:37 -05:00
Volker Lendecke
f38b6db8b1 r20309: Don't treat non-supported EAs as fatal against Samba3.
Volker
(This used to be commit 52d9c7ed0a)
2007-10-10 14:29:37 -05:00
Andrew Tridgell
9944a67508 r20092: added a locking benchmark that should be good for benchmarking
communitcation in a CIFS clustered server. It tries to keep the
connections full by setting up the next lock as each lock is done.

The locking pattern is similar to the local filesystem ping pong test
in junkcode, forcing a communication between nodes on each request
(This used to be commit d57b9fb298)
2007-10-10 14:29:04 -05:00
Andrew Tridgell
c9291facd4 r20078: support the large samba3 reads in RAW-READ test
(This used to be commit a4c2a575fa)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
6300221b6c r20059: james was asking about CAP_LARGE_READX and reads close to the 64k
boundary. This test shows that both for Samba4 and w2k3, reads larger
than or equal to 64k don't work (return zero bytes).

Not that I claim this is very useful behaviour :-)
(This used to be commit a10fa12ff5)
2007-10-10 14:28:56 -05:00
Jelmer Vernooij
108de297a7 r19510: Make smbtorture's `nprocs' parameter a parametric option.
(This used to be commit f5d6b3ca29)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
535d1920f8 r19506: fixed remaining parts of RAW-READ and RAW-WRITE tests to check for
CAP_LARGE_FILES
(This used to be commit 66bebb2105)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
9cd2b012f3 r19504: - fixed a free error in file_lines_parse
- added a function to test for large file support

- enable CAP_LARGE_FILES only if the test passes

- don't test at large offsets if the server doesn't set
  CAP_LARGE_FILES
(This used to be commit c5423ea22b)
2007-10-10 14:24:40 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Andrew Tridgell
9bda2c3ff2 r18585: 50 open searches is still too many for some of the build farm hosts,
which have a ulimit -n of 100. Drop the number of searches to 20.

That should limit the maximum total fd count to about 76, most of
which is all the listening sockets on the various interfaces
(This used to be commit fb5b8c4f8c)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
d928bce0d8 r18541: with 100 old style searches we can run out of file descriptors on some
systems. drop to 50
(This used to be commit ce5d5a1872)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
bca38ba866 r18371: made the directory depth notify test independent of timing
(This used to be commit 39458e62f5)
2007-10-10 14:18:20 -05:00
Andrew Tridgell
8942893c39 r18355: increase the delays waiting for all events to propogate in the
RAW-NOTIFY test.
(This used to be commit 81fd19ba3f)
2007-10-10 14:18:17 -05:00
Andrew Tridgell
3cc41b70da r18320: the raw write size limit test hurts too many hosts. Limit it to 2^33
bytes if --dangerous is not set.
(This used to be commit 90e5136ea4)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
89efea81d9 r18319: fixed the directory search resume code on IRIX
The problem was twofold:

  1) irix returns 64 bit numbers in telldir(). The protocol uses a 32
     bit resume key. We now cope with this properly using the code in
     pvfs_list_seek_ofs().

  2) irix returns 0xFFFFFFFF from telldir() for the last entry in the
     directory. When added to DIR_OFFSET_BASE this became
     DIR_OFFSET_DOTDOT which meant an infinite loop!
(This used to be commit 8cce9740ed)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Derrell Lipman
6d362bdb7c r18103: add torture test for 'RAW_OPEN_OPENX without a leading slash on the path', known to fail on NetApp filers
(This used to be commit 9a8c7b0a76)
2007-10-10 14:17:17 -05:00
Stefan Metzmacher
46cdf9250b r17785: fix compiler warnings
metze
(This used to be commit 256fc452a4)
2007-10-10 14:16:42 -05:00
Jeremy Allison
38dee43c19 r17141: Prove that create dispositions with truncate and
overwrite break oplocks.
Jeremy.
(This used to be commit 94886f8c40)
2007-10-10 14:10:14 -05:00
Jeremy Allison
8de86d192a r17139: Checking in Volker's extended oplock test.
Jeremy
(This used to be commit 720c425af1)
2007-10-10 14:10:14 -05:00
Jeremy Allison
6cebe4d890 r17099: Samba3 now passes RAW-LOCK completely, no need for
parameters to protect it.
Jeremy.
(This used to be commit 382c37e3d7)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
440d0487a6 r17020: pass the real error to the failing requests
metze
(This used to be commit 49b96ac44a)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a6a8065812 r17015: add a test that closes the tcp connection with an outstanding
notify request

metze
(This used to be commit d90313f715)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a8958391e8 r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
- parse SMB2 Notify reponse

metze
(This used to be commit de50e0ccdd)
2007-10-10 14:10:06 -05:00
Volker Lendecke
b7c5bc522b r16907: Add an index parameter to torture_open_connection. Next step is to enable the
unclist parameter for all tests that do two connections, to enable cluster
testing.

Volker
(This used to be commit a5d6db0924)
2007-10-10 14:09:58 -05:00
Jeremy Allison
ec3be5b908 r16843: Confirm that openX uses the same mapping table as getatr.
Jeremy.
(This used to be commit 1c84e57e71)
2007-10-10 14:09:52 -05:00
Volker Lendecke
a5cbc9a01c r16842: Jeremy, I almost don't dare checking this in.....
Volker
(This used to be commit ec36c49c08)
2007-10-10 14:09:50 -05:00
Stefan Metzmacher
af0a9eb529 r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
(This used to be commit 78c201db8a)
2007-10-10 14:09:49 -05:00
Jeremy Allison
5517249fad r16761: Added additional NTSTATUS and DOS error test for "."
This confirms a theory of mine...
Added RAW-SAMBA3BADPATH to selectable options.
Jeremy.
(This used to be commit 4cd7a8ed62)
2007-10-10 14:09:44 -05:00
Volker Lendecke
81d09a7f2e r16759: Jeremy, another little error case for you :-)
For the paths with illegal characters we should return ERRDOS:ERRbadpath in
the DOS error case. We return ERRDOS:ERRinvalidname...

Volker
(This used to be commit c2203068f4)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
4357d9f5de r16707: - test attrib = 0 in BASIC_INFO
- return an error when value doesn't match the expected value!

metze
(This used to be commit 1f0ecba773)
2007-10-10 14:09:39 -05:00
Volker Lendecke
414c47633d r16657: Test Jerry's iTunes bug, along with some more error conditions
Volker
(This used to be commit 12aa900eb2)
2007-10-10 14:09:36 -05:00
Jelmer Vernooij
845df42a19 r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code.
(This used to be commit 819d3b4576)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
90be000cd5 r16173: Use memory context provided by smbtorture.
(This used to be commit 88046d5951)
2007-10-10 14:09:05 -05:00
Volker Lendecke
dcbd023aa0 r16151: |= fix found by metze
(This used to be commit ce54a15384)
2007-10-10 14:09:01 -05:00
Volker Lendecke
c1cbe6e0b0 r16149: This is a very Samba3 specific test: It tests whether 'hide unreadable' and
'hide unwriteable files' actually do what they are supposed to do.

Volker
(This used to be commit 7bf02a5e0f)
2007-10-10 14:09:01 -05:00
Jeremy Allison
4dd65fdd48 r15947: Do the same test on setting allocation info.
Jeremy.
(This used to be commit b8f6f62acd)
2007-10-10 14:08:43 -05:00
Jeremy Allison
1204445aa0 r15946: Added check that proves that setpathinfo on an
oplocked open file generates a break.
Jeremy.
(This used to be commit 061b519b27)
2007-10-10 14:08:43 -05:00
Andrew Tridgell
373bf313cd r15881: fixed the RAW-ACLS test for 64 bit systems (was failing on ppc64)
(This used to be commit c954a6662d)
2007-10-10 14:08:37 -05:00
Stefan Metzmacher
7f0e17e903 r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different level
metze
(This used to be commit 95bf41b4d4)
2007-10-10 14:08:09 -05:00
Stefan Metzmacher
5a8ebb7b67 r15690: - disable the lock cancel test against samba3
- disable the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT test against samba3

metze
(This used to be commit 620cc182b3)
2007-10-10 14:08:06 -05:00
Stefan Metzmacher
bd0fb90162 r15685: let samba3 pass RAW-READ and ignore one bug
this demonstrates how the target:samba3=yes option
passed in samba3's make test can be used in samba4's smbtorture

metze
(This used to be commit 856656739c)
2007-10-10 14:08:05 -05:00
Stefan Metzmacher
5ff4b74df3 r15656: for NT IOCTL's we need to control the max_data field for some calls
metze
(This used to be commit 3cab02f6f5)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
410fb90322 r15640: - NT IOCTL calls also have an 'in' data_blob
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload
  not the SMB payload here

metze
(This used to be commit 358d03143f)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
2a072bf9a2 r15615: - add some tests for cancel pending locks by SMBexit, SMBulogoff and SMBtdis
- add some tests which demonstrate the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT
  error cases of failed locks

metze
(This used to be commit 218910f927)
2007-10-10 14:07:00 -05:00
Jelmer Vernooij
e002300f23 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
a30340affe r15201: Use abs() rather then ABS()
(This used to be commit 1f3833d041)
2007-10-10 14:04:16 -05:00
Stefan Metzmacher
73b385d3c4 r15122: test what access masks are needed when using the FLAGS2_READ_PERMIT_EXECUTE
flag.

metze
(This used to be commit d298e4760c)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
e7f34592eb r15070: test the needed access masks for read/write the different
security descriptor components

metze
(This used to be commit 88c57c8703)
2007-10-10 14:04:06 -05:00
Stefan Metzmacher
4d72f3f8d0 r15066: - sync the dir_flags tests with the file_flags tests
- add some more checks for the w2k3 bug case

metze
(This used to be commit a55b44b96c)
2007-10-10 14:04:06 -05:00
Andrew Tridgell
970f7122d9 r15033: expanded the RAW-OPLOCK test to include the different cases where the
client chooses to break to none or break to level II, when offered a
level II break from exclusive
(This used to be commit 9a35b14422)
2007-10-10 14:04:02 -05:00
Andrew Tridgell
7f6ed60c70 r15016: add a test for a 2nd open with an exclusive oplock. It does not cause
a break, as exclusive oplocks don't cache close requests
(This used to be commit 9f2617a062)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
48d3fb39ff r15015: add an explanation for this test
(This used to be commit 9fdeec506f)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
72343b9615 r15014: added a simple batch oplock benchmark
Jeremy, Samba3 currently fails this test with a 2.6.16-rc6 kernel and
kernel oplocks enabled. With kernel oplock off it passes, though its a
bit slow
(This used to be commit 99df202460)
2007-10-10 14:04:01 -05:00
Andrew Tridgell
b04592918d r14969: ensure that even on slow machines we leave plenty of time for a series
of events to propogate internally in smbd before asking for them

(the test was failing on slow machines)
(This used to be commit a493539458)
2007-10-10 14:00:48 -05:00
Andrew Tridgell
127967334f r14956: change the notify search to be much more efficient by using a
per-depth bisection search. This makes the notify_trigger() call
log(N) which makes us scale well for large numbers of outstanding
notifies
(This used to be commit 16fd00925f)
2007-10-10 14:00:45 -05:00
Andrew Tridgell
b5ee277f1a r14948: add testing of truncate events, and add truncate support to inotify
backend
(This used to be commit b80523a631)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
ce25ec56f3 r14942: make the RAW-NOTIFY test check the strange file rename semantics. Also
be more forgiving of matching on extra bits (inotify cannot match on
minimal bits for all events).
(This used to be commit 29de884737)
2007-10-10 14:00:20 -05:00
Andrew Tridgell
0dce9b003c r14935: try to avoid a race condition in the recursion test
(This used to be commit 659576806f)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
51a5b79ec0 r14934: greatly expand the RAW-NOTIFY testing of completion filters. We now
try each bit in the completion filter separately for a wide range of
file operations.
(This used to be commit 81f8b24526)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
e221db7a39 r14928: demonstrate that the completion filter is only set on the first notify
on a directory handle
(This used to be commit b6e40d9b08)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
d8544db317 r14927: expand the RAW-NOTIFY test to test recursive and rename handling
(This used to be commit e6abb1ecba)
2007-10-10 14:00:18 -05:00
Stefan Metzmacher
1af925f394 r14860: create libcli/security/security.h
metze
(This used to be commit 9ec706238c)
2007-10-10 13:59:44 -05:00
Andrew Tridgell
986aae3c5c r14845: expanded the number of info levels tested for continue in the
RAW-SEARCH test
(This used to be commit a3e7640730)
2007-10-10 13:59:42 -05:00
Stefan Metzmacher
f964db91e7 r14826: initialize pid1 and pid2:-)
metze
(This used to be commit 45e2832972)
2007-10-10 13:59:24 -05:00
Andrew Tridgell
8e7078e149 r14794: added a test to see what happens when you send a notify request on a
handle that already has a notify request pending. It turns out that
they are queued
(This used to be commit 15e9302bcd)
2007-10-10 13:59:19 -05:00
Stefan Metzmacher
7780e2bfa1 r14734: this demonstrates that a tcon isn't autoclosed by a ulogoff
the tcon can be reused using any other valid session later

metze
(This used to be commit b9a90ed763)
2007-10-10 13:59:17 -05:00
Stefan Metzmacher
7011384a3a r14732: fix typo noticed by derrell, thanks!
metze
(This used to be commit ffa500ebb4)
2007-10-10 13:59:16 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Stefan Metzmacher
30976b1af1 r14710: make more clear that SMBexit only cares about the PID
that is used in the open call

metze
(This used to be commit 1bc6940e7d)
2007-10-10 13:59:11 -05:00
Stefan Metzmacher
41a6591628 r14680: add some tests which demonstrate that closing the dir handle
triggers an empty notify reply with NT_STATUS_OK

metze
(This used to be commit 590dd49207)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Andrew Tridgell
9225c02aee r14539: get rid of a pointless union layer in struct smb_notify
(This used to be commit 1e1c559381)
2007-10-10 13:58:41 -05:00
Jelmer Vernooij
d09b70c98b r14527: Fix build problems.
(This used to be commit 863ca4014d)
2007-10-10 13:57:37 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
ae92d63ce1 r14446: demonstrate the notifies on files are not allowed
metze
(This used to be commit 74868726ae)
2007-10-10 13:57:26 -05:00
Stefan Metzmacher
d16d8e1dcd r14444: - make clear that a canceled notify directly returns without any other event
- test mkdir - rmdir - mkdir - rmdir sequence, this gets 4 notify events back
- add some comments to the multiple directory handle and buffered cases

metze
(This used to be commit e2b3816212)
2007-10-10 13:57:25 -05:00
Stefan Metzmacher
3f6ede84da r14440: demonstrate that the smbpid is attached to a session (vuid),
so SMBexit() only closes files for the given user session and the given PID

can someone check if samba3 passes this test, please?

metze
(This used to be commit fd291ff003)
2007-10-10 13:57:25 -05:00
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
3f16241a1d r14363: Remove credentials.h from the global includes.
(This used to be commit 98c4c30513)
2007-10-10 13:57:14 -05:00
Stefan Metzmacher
03bd05947b r14316: don't zero the smb_handle after it was set:-)
metze
(This used to be commit 74472ed8be)
2007-10-10 13:57:11 -05:00
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2)
2007-10-10 13:57:06 -05:00
Andrew Tridgell
7f0c7702f6 r14208: removed use of req->flags2 inside the ntvfs layer. This should help
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
(This used to be commit b78abbbce6)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Andrew Tridgell
2b051070cb r14059: change notify is quite a bit more complex than we thought. These tests
show that w2k3 buffers notifies on directories where you have used
notify previously, thus giving you notifications on events that happen
even when you do not have a current notify call outstanding. This
makes it much easier for clients to avoid race conditions, which is
probably why it is done. It also means that associating change
notifies in Samba with outstanding change notify requests won't work -
instead we have to associate them with buffers on open directories.
(This used to be commit 8c5c8846f5)
2007-10-10 13:52:39 -05:00
Jelmer Vernooij
f8fdbc967c r13944: Yet another round of splitups.
(This used to be commit f87debeb12)
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b)
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
a920f2f9a8 r13004: fix compiler warnings
metze
(This used to be commit 833efdf8a9)
2007-10-10 13:51:16 -05:00
Volker Lendecke
1971eebb10 r12765: Revert an accidential commit
(This used to be commit d96c84126d)
2007-10-10 13:49:51 -05:00
Volker Lendecke
53091bf83e r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
trusted domains.

Volker
(This used to be commit 8b8bb85ad3)
2007-10-10 13:49:51 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c9)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Andrew Tridgell
5e117701b4 r12549: fixed the problem with serialisation and the RAW-OPLOCK test
(This used to be commit ad3b828663)
2007-10-10 13:47:56 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
042a9958c8 r11639: fixed some create_time tests that should be change_time tests
(This used to be commit c4266c7f68)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
498b2892dd r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64c)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
655138602c r10912: added a test for supporting batch oplock upgrades
(This used to be commit 1183af06b7)
2007-10-10 13:39:41 -05:00
Stefan Metzmacher
ab4d635b92 r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a)
2007-10-10 13:38:57 -05:00
Tim Potter
8dbeab5cd2 r10257: strlen returns a size_t which can be 64 bits long.
(This used to be commit 4a4b053718)
2007-10-10 13:38:12 -05:00
Jeremy Allison
0ac1490a89 r10132: Confirm that openX with OPEN_EXEC implies read only.
Jeremy.
(This used to be commit da70b2ab2d)
2007-10-10 13:38:01 -05:00
Tim Potter
9a56cb39b3 r9876: Fix some 64-bit warnings for Itanium machine.
(This used to be commit 9e375d82e8)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
b674411eb4 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652)
2007-10-10 13:35:01 -05:00
Volker Lendecke
11f4803d00 r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled.

Jeremy, please look closely at this. You can easily verify this by adding a
smb_msleep(100) to the top of open_file_ntcreate and run the new samba4
torture test. It does also happen without the msleep, but not as reliably.

Thanks,

Volker
(This used to be commit c803d4c9a5)
2007-10-10 13:34:32 -05:00
Tim Potter
2fa50ab671 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
(This used to be commit 26b191b3c9)
2007-10-10 13:31:33 -05:00
Andrew Tridgell
c3ee5d6f75 r9121: use the older non-passthru level for setting delete on close
disposition in the RAW-UNLINK test (this allows it to work with netapp
servers)
(This used to be commit 4f9cfd10bf)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
d07f01b203 r9046: fixed display of privileges in RAW-ACLS test
(This used to be commit 0ab907af6a)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
89cbdf8ed0 r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
form
(This used to be commit 02a78d06e1)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
177423e88c r9044: added a comment so you can see what this test does :-)
(This used to be commit ee27441608)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
089fa95704 r9043: fixed return code in RAW-STREAMS test
(This used to be commit 45e41010da)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8a0b044d20 r9042: fixed the valgrind error in the RAW-SFILEINFO test
(This used to be commit eaf079e33f)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8d5f642ee1 r9008: check the return status for the directory handle creations
(This used to be commit 57e44300f7)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
d4c4f16f94 r9006: expanded RAW-UNLINK test to test directory delete on close with non-empty directory,
as per discussions during jeremys talk at cifs2005
(This used to be commit b28b2108c7)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
7937a353db r9003: add testing for non-empty directory delete on close
(This used to be commit caca1f191d)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
5f0c8df55a r8773: fixed another dependency on directory ordering in RAW-SEARCH
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)
(This used to be commit 5edeb56bf0)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
6b2d6ce604 r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
(This used to be commit 8c4d0cd7b7)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
2c457eca25 r8712: cleanup old search test code to use talloc
(This used to be commit 1d830bcd47)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
92a6cd373a r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
(This used to be commit 92afff5fe7)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
a4428c814a r8634: we are still getting occasional test failures due to disk space
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.
(This used to be commit 668dd29259)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
8e824d4d04 r8537: cope better with the small file handle limit on some systems in the build farm
(This used to be commit 6202a9d099)
2007-10-10 13:29:36 -05:00
Andrew Tridgell
9953452d49 r8522: fixed another couple of size_t warnings
(This used to be commit d2c9285483)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
e835621799 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
(This used to be commit a58ea6b385)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
a2a838d72c r8497: prevent a fd leak in RAW-SEARCH test
(This used to be commit efb151ba79)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
060113de98 r8495: allow for up 10% change in allocated disk space during QFSINFO tests
(This used to be commit 16d752b551)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
fc56396261 r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms
(This used to be commit 9264555541)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
bcec34683d r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33
(This used to be commit e499b1abae)
2007-10-10 13:23:09 -05:00
Volker Lendecke
8e05fc188e r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
write. Test that.

Volker
(This used to be commit 2ad02d5e09)
2007-10-10 13:19:22 -05:00
Volker Lendecke
824f5b4781 r8185: Delete on close on directories:
Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns
DIRECTORY_NOT_EMPTY.

Volker
(This used to be commit 5680f34778)
2007-10-10 13:19:18 -05:00
Volker Lendecke
44b66a73d3 r8176: Exploring the share mode database...
A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)

Volker
(This used to be commit dbc7a1a978)
2007-10-10 13:19:17 -05:00
Jeremy Allison
3de3d6a02d r8174: Check DOS error codes in torture chkpath test.
Jeremy.
(This used to be commit ff58ecad04)
2007-10-10 13:19:17 -05:00
Andrew Tridgell
6667788706 r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
(This used to be commit acd9fad3a4)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
a703329908 r8122: more fixes from testing dos error code handling against w2k3
(This used to be commit b71fbcf5e2)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
19f2cd199f r8118: remove a debugging hack that should not have been in the last commit
(This used to be commit 0f76449a08)
2007-10-10 13:19:10 -05:00
Andrew Tridgell
fee56ea900 r8117: fixed a bunch more dos error code handing.
The biggest change was fixing the RAW-CONTEXT test. It was forcing
capabilities to zero in an attempt to not negotiated extended
security, but as a side effect it was forcing negotiation of dos error
codes. This confused the hell out of the test code!

Also fixed a bunch of places incorrectly using NT_STATUS_V() instead
of NT_STATUS_EQUAL() and several places that had the wrong dos status
codes
(This used to be commit 0b22744f40)
2007-10-10 13:19:10 -05:00