1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

230 Commits

Author SHA1 Message Date
Stefan Metzmacher
833efdf8a9 r13004: fix compiler warnings
metze
2007-10-10 13:51:16 -05:00
Volker Lendecke
d96c84126d r12765: Revert an accidential commit 2007-10-10 13:49:51 -05:00
Volker Lendecke
8b8bb85ad3 r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
trusted domains.

Volker
2007-10-10 13:49:51 -05:00
Jelmer Vernooij
c722f665c9 r12694: Move some headers to the directory of the subsystem they belong to. 2007-10-10 13:49:39 -05:00
Jelmer Vernooij
73610639b2 r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
70e7449318 r12608: Remove some unused #include lines. 2007-10-10 13:49:03 -05:00
Andrew Tridgell
ad3b828663 r12549: fixed the problem with serialisation and the RAW-OPLOCK test 2007-10-10 13:47:56 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Andrew Tridgell
c4266c7f68 r11639: fixed some create_time tests that should be change_time tests 2007-10-10 13:46:04 -05:00
Andrew Tridgell
8331eee64c r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
2007-10-10 13:46:04 -05:00
Andrew Tridgell
1183af06b7 r10912: added a test for supporting batch oplock upgrades 2007-10-10 13:39:41 -05:00
Stefan Metzmacher
4527815a0a 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
2007-10-10 13:38:57 -05:00
Tim Potter
4a4b053718 r10257: strlen returns a size_t which can be 64 bits long. 2007-10-10 13:38:12 -05:00
Jeremy Allison
da70b2ab2d r10132: Confirm that openX with OPEN_EXEC implies read only.
Jeremy.
2007-10-10 13:38:01 -05:00
Tim Potter
9e375d82e8 r9876: Fix some 64-bit warnings for Itanium machine. 2007-10-10 13:36:19 -05:00
Jelmer Vernooij
200a8f6652 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
2007-10-10 13:35:01 -05:00
Volker Lendecke
c803d4c9a5 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
2007-10-10 13:34:32 -05:00
Tim Potter
26b191b3c9 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
2007-10-10 13:31:33 -05:00
Andrew Tridgell
4f9cfd10bf 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)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
0ab907af6a r9046: fixed display of privileges in RAW-ACLS test 2007-10-10 13:31:11 -05:00
Andrew Tridgell
02a78d06e1 r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
form
2007-10-10 13:31:11 -05:00
Andrew Tridgell
ee27441608 r9044: added a comment so you can see what this test does :-) 2007-10-10 13:31:11 -05:00
Andrew Tridgell
45e41010da r9043: fixed return code in RAW-STREAMS test 2007-10-10 13:31:10 -05:00
Andrew Tridgell
eaf079e33f r9042: fixed the valgrind error in the RAW-SFILEINFO test 2007-10-10 13:31:10 -05:00
Andrew Tridgell
57e44300f7 r9008: check the return status for the directory handle creations 2007-10-10 13:31:06 -05:00
Andrew Tridgell
b28b2108c7 r9006: expanded RAW-UNLINK test to test directory delete on close with non-empty directory,
as per discussions during jeremys talk at cifs2005
2007-10-10 13:31:06 -05:00
Andrew Tridgell
caca1f191d r9003: add testing for non-empty directory delete on close 2007-10-10 13:31:06 -05:00
Andrew Tridgell
5edeb56bf0 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)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
8c4d0cd7b7 r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering 2007-10-10 13:29:59 -05:00
Andrew Tridgell
1d830bcd47 r8712: cleanup old search test code to use talloc 2007-10-10 13:29:57 -05:00
Andrew Tridgell
92afff5fe7 r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order 2007-10-10 13:29:56 -05:00
Andrew Tridgell
668dd29259 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.
2007-10-10 13:29:47 -05:00
Andrew Tridgell
6202a9d099 r8537: cope better with the small file handle limit on some systems in the build farm 2007-10-10 13:29:36 -05:00
Andrew Tridgell
d2c9285483 r8522: fixed another couple of size_t warnings 2007-10-10 13:29:34 -05:00
Andrew Tridgell
a58ea6b385 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
2007-10-10 13:29:34 -05:00
Andrew Tridgell
efb151ba79 r8497: prevent a fd leak in RAW-SEARCH test 2007-10-10 13:23:09 -05:00
Andrew Tridgell
16d752b551 r8495: allow for up 10% change in allocated disk space during QFSINFO tests 2007-10-10 13:23:09 -05:00
Andrew Tridgell
9264555541 r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms 2007-10-10 13:23:09 -05:00
Andrew Tridgell
e499b1abae r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33 2007-10-10 13:23:09 -05:00
Volker Lendecke
2ad02d5e09 r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
write. Test that.

Volker
2007-10-10 13:19:22 -05:00
Volker Lendecke
5680f34778 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
2007-10-10 13:19:18 -05:00
Volker Lendecke
dbc7a1a978 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
2007-10-10 13:19:17 -05:00
Jeremy Allison
ff58ecad04 r8174: Check DOS error codes in torture chkpath test.
Jeremy.
2007-10-10 13:19:17 -05:00
Andrew Tridgell
acd9fad3a4 r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3 2007-10-10 13:19:11 -05:00
Andrew Tridgell
b71fbcf5e2 r8122: more fixes from testing dos error code handling against w2k3 2007-10-10 13:19:11 -05:00
Andrew Tridgell
0f76449a08 r8118: remove a debugging hack that should not have been in the last commit 2007-10-10 13:19:10 -05:00
Andrew Tridgell
0b22744f40 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
2007-10-10 13:19:10 -05:00
Andrew Tridgell
87cdd11708 r8107: now that we properly separate DOS and NT status codes all the places
that relied on the mapping need to be fixed. The first thing is to get
all the torture tests working against w2k3 again with nt status codes
enabled. The 2nd step will be to make them pass with nt status
disabled.

This starts on the first task, fixing the assumption that
NT_STATUS_INVALID_LOCK_SEQUENCE is a valid substitute for
ERRDOS:ERRbadaccess
2007-10-10 13:19:08 -05:00
Andrew Tridgell
ff5549e87f r8104: - added support for our client library to not negotiate nt status codes, controlled
with 'nt status support' option.

- make nt_errstr() display nice strings for dos status codes encoded
  using NT_STATUS_DOS()

- no longer map between dos and nt status codes in the client library,
  instead return using NT_STATUS_DOS()

- fixed the RAW-CONTEXT test to look for
  NT_STATUS_DOS(ERRSRV, ERRbaduid) instead of NT_STATUS_INVALID_HANDLE
2007-10-10 13:19:08 -05:00
Andrew Tridgell
214e51b3c8 r8058: added testing of delete on close for files and directories 2007-10-10 13:19:04 -05:00