summaryrefslogtreecommitdiff
path: root/source4/torture/raw
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r2671: we're getting too many errors caused by the talloc_realloc() API notAndrew Tridgell1-2/+4
taking a context (so when you pass a NULL pointer you end up with memory in a top level context). Fixed it by changing the API to take a context. The context is only used if the pointer you are reallocing is NULL. (This used to be commit 8dc23821c9f54b2f13049b5e608a0cafb81aa540)
2007-10-10r2660: - converted the libcli/raw/ library to use talloc_increase_ref_count()Andrew Tridgell1-4/+16
rather than manual reference counts - properly support SMBexit in the cifs and posix backends - added a logoff method to all backends With these changes the RAW-CONTEXT test now passes against the posix backend (This used to be commit c315d6ac1cc40546fde1474702a6d66d07ee13c8)
2007-10-10r2649: - used some cpp tricks to make users of talloc() and talloc_realloc()Andrew Tridgell1-0/+3
to get auto-naming of pointers very cheaply. - fixed a couple of memory leaks found with the new tricks A typical exit report for smbd is now: talloc report on 'null_context' (total 811 bytes in 54 blocks) auth/auth_sam.c:334 contains 20 bytes in 1 blocks struct auth_serversupplied_info contains 498 bytes in 33 blocks UNNAMED contains 8 bytes in 1 blocks lib/data_blob.c:40 contains 16 bytes in 1 blocks iconv(CP850,UTF8) contains 61 bytes in 4 blocks iconv(UTF8,CP850) contains 61 bytes in 4 blocks iconv(UTF8,UTF-16LE) contains 67 bytes in 4 blocks iconv(UTF-16LE,UTF8) contains 67 bytes in 4 blocks UNNAMED contains 13 bytes in 1 blocks which is much better than before (This used to be commit 6e721393d03afd3c2f8ced8422533547a9e33342)
2007-10-10r2593: don't crash if the server doesn't know that 0 count searches mean 1Andrew Tridgell1-2/+6
(This used to be commit 640ced453092a5c5f3ffe7ee0fe4be804a4ced14)
2007-10-10r2520: - finished implementing the server side of the old style search requestsAndrew Tridgell1-7/+7
(This used to be commit 4e4859c06b9de5fe60ebd17cfb09eed480b79ec1)
2007-10-10r2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 andAndrew Tridgell1-3/+18
original core level calls). The old code was completely wrong in many respects. also fixed the EA_SIZE level in the server extended the RAW-SEARCH test suite to test the new code properly (This used to be commit 71480271ad84b57fcdde264a54bb2408cf783255)
2007-10-10r2462: added a test for the error code for no matching filenameAndrew Tridgell1-0/+18
(This used to be commit 7bfbbc38ed9aac93d288aba183f7a925f170f81e)
2007-10-10r2457: expanded the RAW-SEARCH test to test for what happens when a directoryAndrew Tridgell1-6/+233
is modified while being searched, and whether the server always returns sorted directory listings. (This used to be commit e23514c78f1f15a61dadaa5c4de5de7cd0593ea0)
2007-10-10r2217: Ad-hoc tests to allow me to work out the correct error codeJeremy Allison1-2/+128
for the bad path algorithm. Jeremy. (This used to be commit d2d32d8f2b7a4a3e62f505adae787b42f80309bb)
2007-10-10r2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).Jeremy Allison1-0/+78
Jeremy. (This used to be commit fe6506e190ed5e1987894d43caa51b33d80d5193)
2007-10-10r2071: - change smbtorture to use the popt_common stuffStefan Metzmacher1-1/+1
this means -U DOM\\user is know allowed - torture:userdomain is a new smb.conf parameter because lp_workgroup is not the domain of the user - we use torture:userdomain now in the tests instad of lp_workgroup - for backward compat the userdomain is lp_workgroup() by default and not lp_netbios_name(), which my change later to match 'net' and 'smbclient'.. - we now have dublicate options e.g. -N -s ... tridge: can we change this? metze (This used to be commit 4733dcbf5f17422a8a4c9f99664270b3aa66c586)
2007-10-10r1996: fix compiler warningsStefan Metzmacher1-2/+2
metze (This used to be commit dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)
2007-10-10r1983: a completely new implementation of tallocAndrew Tridgell2-8/+7
This version does the following: 1) talloc_free(), talloc_realloc() and talloc_steal() lose their (redundent) first arguments 2) you can use _any_ talloc pointer as a talloc context to allocate more memory. This allows you to create complex data structures where the top level structure is the logical parent of the next level down, and those are the parents of the level below that. Then destroy either the lot with a single talloc_free() or destroy any sub-part with a talloc_free() of that part 3) you can name any pointer. Use talloc_named() which is just like talloc() but takes the printf style name argument as well as the parent context and the size. The whole thing ends up being a very simple piece of code, although some of the pointer walking gets hairy. So far, I'm just using the new talloc() like the old one. The next step is to actually take advantage of the new interface properly. Expect some new commits soon that simplify some common coding styles in samba4 by using the new talloc(). (This used to be commit e35bb094c52e550b3105dd1638d8d90de71d854f)
2007-10-10r1820: added a strcmp_safe() that handles NULL pointers. Needed for theAndrew Tridgell1-5/+5
search torture test, as some servers return really bad entries. (This used to be commit c900ebb3ac18d77ab334d3bf5259b3bba547b09c)
2007-10-10r1795: Fix the multiple session setup torture tests.Andrew Bartlett1-1/+2
Andrew Bartlett (This used to be commit c4036f218967459c17056f9d27eb95eed3f72dd8)
2007-10-10r1769: Add a new torture test to check vuid properties, and ↵Andrew Bartlett1-3/+43
SPNEGO/non-SPNEGO games. Andrew Bartlett (This used to be commit 90d70a63ee6d44172cec99a9115817f666b5d06d)
2007-10-10r1740: fixed the torture suite for ASCII-only serversAndrew Tridgell4-7/+7
(This used to be commit c3bce90be745db3e7cbf8273c1c8496920332f5e)
2007-10-10r1654: rename cli_ -> smbcli_Stefan Metzmacher19-430/+430
rename CLI_ -> SMBCLI_ metze (This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
2007-10-10r1632: in case of error don't send uninitialised fnums on the wireAndrew Tridgell1-1/+1
(This used to be commit 13cd58efce8fc077c7c3ced99a82344766e20c5c)
2007-10-10r1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'Stefan Metzmacher3-6/+6
e.g. we now have 'union smb_mkdir' and 'enum smb_mkdir_level' in sync we may should also rename 'RAW_MKDIR_*' -> 'SMB_MKDIR_*' metze (This used to be commit 0bb50dcf1ccb9797000fcbea4d8a73f2d2a3db77)
2007-10-10r1113: Test for wildcards in chkpath.Jeremy Allison1-0/+5
Jeremy. (This used to be commit 14cf961b7f8d273604e53ba9a889bb18cd8054d8)
2007-10-10r1098: Extended raw chkpath to catch regressions.Jeremy Allison1-0/+40
Jeremy. (This used to be commit 37d1fa1684b4cca125ae2cf6039f8b12e7ae1b89)
2007-10-10r962: convert 'unsigned' and 'unsigned int' to uint_tStefan Metzmacher3-27/+27
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10r946: Updated attribute only oplock tester to cover more cases.Jeremy Allison1-5/+37
Jeremy. (This used to be commit 6c9d32173b26353e8ae00f7f6b666290651883e6)
2007-10-10r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher1-1/+1
metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher1-2/+2
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher3-6/+6
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher4-8/+8
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10r873: converted samba4 to use real 64 bit integers instead ofAndrew Tridgell7-44/+40
structures. This was suggested by metze recently. I checked on the build farm and all the machines we have support 64 bit ints, and support the LL suffix for 64 bit constants. I suspect some won't support strtoll() and related functions, so we will probably need replacements for those. (This used to be commit 9a9244a1c66654c12abe4379661cba83a73c4c21)
2007-10-10r865: Regression test for attribute-only opens not causing an oplock break.Jeremy Allison1-0/+29
Samba3 server used to get this wrong. Jeremy. (This used to be commit 4120b3bdf6668909efa0af97b2c63adea22c35da)
2007-10-10r741: Test from Volker in RAW-OPEN for truncating a file containing locks.Jeremy Allison1-0/+77
Also added the same ad-hoc test is LOCK7. Jeremy. (This used to be commit 6cb21ccda3cb420171e2d5afb3842a6be4bd4d18)
2007-10-10r336: added a -X command line option to smbtorture to enable dangerous orAndrew Tridgell1-0/+5
possibly destructive tests. Use with care! Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword() (This used to be commit 84de0b7e58c69e0817b9d475de0895a54cc95927)
2007-10-10r204: Turns out that the string in the SEARCH unix_info level is thatJeremy Allison1-0/+14
rare thing, a non-length string (ie. not a WIRE_STRING) but a null terminated char string. There wasn't a good interface to pull that out of a blob (all the string interfaces assumed WIRE_STRINGS). Added a new one, only used for this call. Sucks, I know - but the alternatives suck more. Added tests for some of the unix info returned. Jeremy. (This used to be commit 4d0ed04c54b105789ffd32334c3b0e544f02418c)
2007-10-10r203: Added size and alloc size tests to UNIX info level.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 16455c5b34fd09ab16a1ea841f710ce65bc492c8)
2007-10-10r184: Fix UNIX Search info level. This still needs to be added to the rawJeremy Allison1-2/+4
client library before this test can work. Jeremy. (This used to be commit 7b2a2665438a1dbc05053a13f5f84bb56dacd073)
2007-10-10r152: a quick airport commit ....Andrew Tridgell5-9/+9
added ldbedit, a _really_ useful command added ldbadd, ldbdel, ldbsearch and ldbmodify to build solved lots of timezone issues, we now pass the torture tests with client and server in different zones fixed several build issues I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that fix. (This used to be commit af34710d4da1841653624fe304b1c8d812c0fdd9)
2004-04-02Added one more test for "dirname\."Jeremy Allison1-0/+5
Jeremy. (This used to be commit a7ca9620d50aa33e7125d280bc096f1a42438141)
2004-03-25fixed the handling of level II oplocks in samba4, especially whenAndrew Tridgell1-1/+1
acting as a cifs redirectory (using the cifs backend) (This used to be commit 06a8100e6a2f3f079af5b6ec32d87d1d25f56c3c)
2004-02-10Convert libcli routines to return NTSTATUS instead of BOOL. Again, theTim Potter13-32/+32
only users are smbclient and smbtorture. (This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10)
2004-02-08Convert libcli routines to use cli_tree instead of cli_state. PortTim Potter18-332/+332
smbtorture to use the new interface. Part 2 will be to eliminate cli_state from smbtorture as this is now the only place where it is used. (This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)
2004-01-21cope with a wider range of broken servers in the RAW-QFILEINFO testAndrew Tridgell1-8/+10
(This used to be commit eb6fc29caf5be8446c31668748a5cce387c71627)
2003-12-04* patch based on work by Jim Myers to unify the ioctl handling to beAndrew Tridgell2-16/+19
more like the other major SMB functions * added SMBntrename code (This used to be commit f2d3dc9893fa0e089c407fa16ce9ff13587e70cd)
2003-11-06allow qfsinfo to continue with just 10 levels supported in the serverAndrew Tridgell1-1/+1
(This used to be commit 9476dd562010dc30dd9aea777e0cede273e6e29a)
2003-10-10fixed snprintf.c for systems that have only some of the *printf() family of ↵Andrew Tridgell1-3/+3
functions cope with servers that return bogus (too large) values in max_xmit cope with a couple more error conditions in RAW-SFILEINFO better startup time heuristics in NBENCH (This used to be commit 89f7261ba589e5760b3cf9c3594eab9d7198dd7e)
2003-09-02thanks to ntfsd and some google searches I worked out what the unknownAndrew Tridgell3-32/+57
fields in level 261 and level 262 of directory search are, plus the names of the levels the unknown fields are a 64bit unique file id, and match the 64 bit number from the internal_information qfileinfo level (This used to be commit b69f54eb028a24144a2e813f059b08644118ab09)
2003-08-31I think I've finally got the ascii/unicode issues right in trans2 findAndrew Tridgell2-13/+76
first Also expanded the rename test a little (This used to be commit 723af7f097a8c7f23dac23039e479811559ac3cb)
2003-08-29expanded the RAW-READ test to make it clearer that all locks conflictAndrew Tridgell1-1/+7
in SMBlockread, not just other peoples locks (error in spec) (This used to be commit a56f6896bfc00222b12be3d0bb06f99144f2d23d)
2003-08-23fix a segv when server doesn't support ATTRIBUTE_TAG_INFORMATIONAndrew Tridgell1-1/+3
(This used to be commit 19abdace95ff8369922ed7ffb9f75fab6d2d0b7b)
2003-08-15more fixes from the IRIX compiler (thanks herb!)Andrew Tridgell2-3/+7
(This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
2003-08-15a few build fixes to try to get irix buildingAndrew Tridgell1-0/+2
(This used to be commit 4059fbcf028e105c9377ec5a302623ae282e33f1)